Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002504/0.002504, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003052/0.003052, allocations: 165.6 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.578/1.578, allocations: 177.1 MB / 204.6 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,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.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,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.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.864e-05/3.047e-05, allocations: 2.312 kB / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.01162/0.01165, allocations: 5.9 MB / 278.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004612/0.01626, allocations: 1.525 MB / 279.8 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007676/0.01703, allocations: 27.81 kB / 279.8 MB, free: 10.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000437/0.01747, allocations: 166.3 kB / 280 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007433/0.01821, allocations: 313 kB / 280.3 MB, free: 9.875 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009193/0.01913, allocations: 419.3 kB / 280.7 MB, free: 9.465 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00166/0.02079, allocations: 1.445 MB / 282.1 MB, free: 8.016 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000497/0.02128, allocations: 281.6 kB / 282.4 MB, free: 7.715 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001142/0.02243, allocations: 0.7682 MB / 283.2 MB, free: 6.945 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007044/0.02313, allocations: 454.7 kB / 283.6 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002122/0.02334, allocations: 136 kB / 283.7 MB, free: 6.367 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003516/0.02369, allocations: 179.9 kB / 283.9 MB, free: 6.191 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002788/0.02397, allocations: 275.1 kB / 284.2 MB, free: 5.922 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005344/0.02451, allocations: 427 kB / 284.6 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002207/0.02672, allocations: 1.628 MB / 286.2 MB, free: 3.871 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.02672, allocations: 0 / 286.2 MB, free: 3.871 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.02672, allocations: 0 / 286.2 MB, free: 3.871 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.204e-05/0.02675, allocations: 0 / 286.2 MB, free: 3.871 MB / 266.7 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.003091/0.02984, allocations: 1.508 MB / 287.7 MB, free: 2.324 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.02989, allocations: 12.03 kB / 287.7 MB, free: 2.312 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004938/0.03038, allocations: 192.2 kB / 287.9 MB, free: 2.125 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008892/0.03127, allocations: 0.5115 MB / 288.4 MB, free: 1.586 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.61e-05/0.03134, allocations: 70.31 kB / 288.5 MB, free: 1.516 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001621/0.03151, allocations: 92.38 kB / 288.6 MB, free: 1.426 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00184/0.03335, allocations: 1.075 MB / 289.7 MB, free: 288 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.321e-05/0.03337, allocations: 192 / 289.7 MB, free: 288 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.33e-05/0.03346, allocations: 36.38 kB / 289.7 MB, free: 252 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.691e-05/0.03349, allocations: 23.94 kB / 289.7 MB, free: 228 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1157/0.1492, allocations: 0.7935 MB / 290.5 MB, free: 28.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005578/0.1548, allocations: 3.182 MB / 293.7 MB, free: 26.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.1558, allocations: 0.6205 MB / 294.3 MB, free: 26.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006165/0.1564, allocations: 380.8 kB / 294.7 MB, free: 26.47 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.799e-05/0.1565, allocations: 18.19 kB / 294.7 MB, free: 26.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.1565, allocations: 46.28 kB / 294.8 MB, free: 26.42 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 2.495e-06/0.1565, allocations: 1.125 kB / 294.8 MB, free: 26.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.004113/0.1606, allocations: 2.144 MB / 296.9 MB, free: 25.45 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.1607, allocations: 64 kB / 297 MB, free: 25.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000855/0.1615, allocations: 0.7196 MB / 297.7 MB, free: 25.01 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5e-05/0.1616, allocations: 41.23 kB / 297.7 MB, free: 24.96 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003213/0.1619, allocations: 0.5259 MB / 298.3 MB, free: 24.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001957/0.1621, allocations: 283.5 kB / 298.5 MB, free: 24.37 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000264/0.1624, allocations: 188.3 kB / 298.7 MB, free: 24.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1625, allocations: 0.5998 MB / 299.3 MB, free: 23.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005488/0.1631, allocations: 308.8 kB / 299.6 MB, free: 23.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006793/0.1638, allocations: 0.5077 MB / 300.1 MB, free: 23.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.1651, allocations: 0.8789 MB / 301 MB, free: 22.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.1651, allocations: 3.938 kB / 301 MB, free: 22.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002236/0.1673, allocations: 1.12 MB / 302.1 MB, free: 22.35 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.1673, allocations: 6.344 kB / 302.1 MB, free: 22.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.1673, allocations: 7.562 kB / 302.1 MB, free: 22.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006482/0.168, allocations: 212.5 kB / 302.4 MB, free: 22.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008526/0.1688, allocations: 194.8 kB / 302.5 MB, free: 22.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003308/0.1722, allocations: 3.408 MB / 305.9 MB, free: 19.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006511/0.1728, allocations: 31.23 kB / 306 MB, free: 19.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-05/0.1729, allocations: 30.3 kB / 306 MB, free: 19.56 MB / 266.7 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.0003377/0.1732, allocations: 278.8 kB / 306.3 MB, free: 19.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.1734, allocations: 100.9 kB / 306.4 MB, free: 19.28 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001754/0.1735, allocations: 91.19 kB / 306.5 MB, free: 19.21 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.1735, allocations: 5.812 kB / 306.5 MB, free: 19.21 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-05/0.1736, allocations: 12.42 kB / 306.5 MB, free: 19.2 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.1736, allocations: 3.422 kB / 306.5 MB, free: 19.2 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000922/0.1745, allocations: 0.7531 MB / 307.2 MB, free: 18.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1745, allocations: 4 kB / 307.2 MB, free: 18.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006508/0.1751, allocations: 136.7 kB / 307.4 MB, free: 18.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005503/0.1757, allocations: 206.7 kB / 307.6 MB, free: 18.42 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.175e-05/0.1757, allocations: 21.67 kB / 307.6 MB, free: 18.4 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00293/0.1787, allocations: 3.397 MB / 311 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1787, allocations: 0 / 311 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002102/0.1808, allocations: 1.446 MB / 312.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.1809, allocations: 71.52 kB / 312.5 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.181, allocations: 12 kB / 312.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005738/0.1816, allocations: 47.97 kB / 312.6 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.1817, allocations: 60.48 kB / 312.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.027e-05/0.1818, allocations: 23.98 kB / 312.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003761/0.1821, allocations: 462.7 kB / 313.1 MB, free: 12.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1821, allocations: 0 / 313.1 MB, free: 12.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008072/0.1829, allocations: 243.9 kB / 313.3 MB, free: 12.7 MB / 266.7 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.0001939/0.1831, allocations: 133.5 kB / 313.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001879/0.185, allocations: 1.096 MB / 314.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.185, allocations: 4.25 kB / 314.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.1862, allocations: 0.6944 MB / 315.3 MB, free: 10.73 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006663/0.1868, allocations: 132.8 kB / 315.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.1894, allocations: 1.857 MB / 317.3 MB, free: 8.746 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.1897, allocations: 391 kB / 317.6 MB, free: 8.328 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003597/0.19, allocations: 84.48 kB / 317.7 MB, free: 8.25 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.1902, allocations: 48.48 kB / 317.8 MB, free: 8.199 MB / 266.7 MB Notification: Performance of SimCode: time 1.123e-06/0.1902, allocations: 0 / 317.8 MB, free: 8.199 MB / 266.7 MB Notification: Performance of Templates: time 0.01815/0.2083, allocations: 10.95 MB / 328.7 MB, free: 13.46 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.055395071045496]