Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 113.9 kB / 17.07 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 198.8 kB / 18 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.548/1.548, allocations: 222.9 MB / 241.7 MB, free: 15.12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 55.86 kB / 351.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4241/0.4252, allocations: 49.43 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007595/0.4328, allocations: 6.055 MB / 406.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004037/0.4369, allocations: 1.529 MB / 408.3 MB, free: 1.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00125/0.4382, allocations: 16 kB / 408.3 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006253/0.4389, allocations: 170.2 kB / 408.5 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001046/0.44, allocations: 293.3 kB / 408.8 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.4412, allocations: 411.4 kB / 409.2 MB, free: 368 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001849/0.4431, allocations: 1.395 MB / 410.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006285/0.4437, allocations: 429.2 kB / 411 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007567/0.4445, allocations: 0.4906 MB / 411.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006488/0.4452, allocations: 0.568 MB / 412.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001701/0.4453, allocations: 139.9 kB / 412.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000299/0.4457, allocations: 168 kB / 412.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002328/0.4459, allocations: 271.2 kB / 412.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006151/0.4465, allocations: 0.5871 MB / 413.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001757/0.4483, allocations: 1.539 MB / 414.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.004e-05/0.4483, allocations: 4 kB / 414.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.4483, allocations: 0 / 414.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.534e-05/0.4484, allocations: 0 / 414.8 MB, free: 10.75 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002785/0.4511, allocations: 1.368 MB / 416.1 MB, free: 9.336 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.4512, allocations: 8.031 kB / 416.1 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002131/0.4514, allocations: 115.6 kB / 416.3 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00091/0.4524, allocations: 0.5654 MB / 416.8 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.775e-05/0.4524, allocations: 66.38 kB / 416.9 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001545/0.4526, allocations: 88.31 kB / 417 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.4542, allocations: 0.8587 MB / 417.8 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.4542, allocations: 4 kB / 417.8 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.237e-05/0.4543, allocations: 36 kB / 417.9 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.121e-05/0.4544, allocations: 20 kB / 417.9 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/0.456, allocations: 0.855 MB / 418.7 MB, free: 6.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006638/0.4626, allocations: 3.214 MB / 422 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001656/0.4644, allocations: 0.6762 MB / 422.6 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.4654, allocations: 431.1 kB / 423.1 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.513e-05/0.4655, allocations: 16.53 kB / 423.1 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.773e-05/0.4656, allocations: 43.12 kB / 423.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 4.419e-06/0.4656, allocations: 0 / 423.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.007262/0.4729, allocations: 2.263 MB / 425.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.668e-05/0.473, allocations: 64.06 kB / 425.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.4742, allocations: 0.6018 MB / 426 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001185/0.4744, allocations: 41.7 kB / 426.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000483/0.4749, allocations: 443.3 kB / 426.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003378/0.4752, allocations: 256.2 kB / 426.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000372/0.4756, allocations: 150.6 kB / 426.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002593/0.4759, allocations: 390.8 kB / 427.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008909/0.4768, allocations: 321.9 kB / 427.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/0.4779, allocations: 468.6 kB / 428.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001974/0.4799, allocations: 0.8047 MB / 428.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/0.4799, allocations: 4 kB / 428.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003319/0.4833, allocations: 1.114 MB / 430 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.344e-05/0.4834, allocations: 4 kB / 430 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.329e-05/0.4834, allocations: 4 kB / 430 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008771/0.4843, allocations: 195.3 kB / 430.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.4856, allocations: 195.8 kB / 430.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006947/0.4926, allocations: 2.903 MB / 433.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.4942, allocations: 32.05 kB / 433.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/0.4944, allocations: 35.98 kB / 433.3 MB, free: 7.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008757/0.4953, allocations: 233.6 kB / 433.6 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002865/0.4956, allocations: 83 kB / 433.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002951/0.4959, allocations: 95.25 kB / 433.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.795e-05/0.496, allocations: 8 kB / 433.8 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-05/0.496, allocations: 4 kB / 433.8 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/0.496, allocations: 3.984 kB / 433.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.4981, allocations: 0.8924 MB / 434.7 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.4981, allocations: 7.875 kB / 434.7 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/0.4993, allocations: 147.8 kB / 434.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007656/0.5001, allocations: 179.3 kB / 435 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.916e-05/0.5002, allocations: 23.98 kB / 435 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004804/0.505, allocations: 2.888 MB / 437.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5051, allocations: 0 / 437.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003499/0.5086, allocations: 1.427 MB / 439.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005111/0.5091, allocations: 152.1 kB / 439.5 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002492/0.5094, allocations: 12 kB / 439.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008418/0.5103, allocations: 55.95 kB / 439.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002188/0.5105, allocations: 52.58 kB / 439.6 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.29e-05/0.5106, allocations: 24.23 kB / 439.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008606/0.5115, allocations: 423.1 kB / 440 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5115, allocations: 4 kB / 440 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001501/0.513, allocations: 240 kB / 440.3 MB, free: 424 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004003/0.5134, allocations: 145.4 kB / 440.4 MB, free: 272 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003087/0.5165, allocations: 1.044 MB / 441.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.5165, allocations: 3.938 kB / 441.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001646/0.5182, allocations: 0.6356 MB / 442.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.5194, allocations: 147 kB / 442.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00489/0.5243, allocations: 1.987 MB / 444.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.5254, allocations: 0.9814 MB / 445.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006516/0.526, allocations: 93.47 kB / 445.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002457/0.5263, allocations: 55.42 kB / 445.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of SimCode: time 4.448e-06/0.5263, allocations: 0 / 445.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of Templates: time 0.0299/0.5562, allocations: 11.27 MB / 456.6 MB, free: 88 kB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches