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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009268/0.0009268, allocations: 75.91 kB / 21.18 MB, free: 3.395 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9412/0.9412, allocations: 173.3 MB / 201.1 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] 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=5004,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=5004,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.22e-07/9.22e-07, allocations: 0 / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.374e-05/1.466e-05, allocations: 2.312 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.01201/0.01202, allocations: 5.934 MB / 273.9 MB, free: 472 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005418/0.01744, allocations: 1.509 MB / 275.4 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003393/0.01778, allocations: 15.94 kB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002873/0.01806, allocations: 178.2 kB / 275.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004762/0.01854, allocations: 309 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005299/0.01907, allocations: 419.3 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001271/0.02034, allocations: 1.437 MB / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000432/0.02077, allocations: 281.7 kB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008092/0.02158, allocations: 0.7603 MB / 278.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005671/0.02215, allocations: 454.7 kB / 279.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.02232, allocations: 136 kB / 279.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002704/0.02259, allocations: 175.9 kB / 279.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002155/0.02281, allocations: 279.1 kB / 279.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000415/0.02322, allocations: 423 kB / 280.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001114/0.02434, allocations: 0.9539 MB / 281.2 MB, free: 9.141 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.02434, allocations: 0 / 281.2 MB, free: 9.141 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.02434, allocations: 0 / 281.2 MB, free: 9.141 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.216e-06/0.02435, allocations: 0 / 281.2 MB, free: 9.141 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.00162/0.02597, allocations: 1.422 MB / 282.6 MB, free: 7.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.02601, allocations: 8.922 kB / 282.6 MB, free: 7.672 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.02618, allocations: 196.2 kB / 282.8 MB, free: 7.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.02662, allocations: 0.496 MB / 283.3 MB, free: 6.957 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.306e-05/0.02665, allocations: 66.38 kB / 283.4 MB, free: 6.891 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.363e-05/0.02674, allocations: 92.33 kB / 283.5 MB, free: 6.801 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008458/0.02759, allocations: 0.8569 MB / 284.3 MB, free: 5.875 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.0276, allocations: 192 / 284.3 MB, free: 5.875 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.037e-05/0.02765, allocations: 48.31 kB / 284.4 MB, free: 5.828 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.02767, allocations: 23.94 kB / 284.4 MB, free: 5.805 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006063/0.02827, allocations: 419.7 kB / 284.8 MB, free: 5.395 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002819/0.03109, allocations: 2.613 MB / 287.4 MB, free: 2.668 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006646/0.03176, allocations: 453.1 kB / 287.9 MB, free: 2.207 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000277/0.03203, allocations: 230 kB / 288.1 MB, free: 1.977 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/0.03207, allocations: 20.64 kB / 288.1 MB, free: 1.953 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.0321, allocations: 46.05 kB / 288.2 MB, free: 1.898 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 1.422e-06/0.0321, allocations: 0 / 288.2 MB, free: 1.898 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.001994/0.03409, allocations: 1.494 MB / 289.7 MB, free: 380 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.839e-05/0.03412, allocations: 60.05 kB / 289.7 MB, free: 308 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1202/0.1544, allocations: 0.5458 MB / 290.3 MB, free: 29.7 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001481/0.1545, allocations: 39.83 kB / 290.3 MB, free: 29.66 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.1547, allocations: 494.9 kB / 290.8 MB, free: 29.53 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.1549, allocations: 269.5 kB / 291 MB, free: 29.4 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.1551, allocations: 158.4 kB / 291.2 MB, free: 29.37 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.1552, allocations: 0.5497 MB / 291.8 MB, free: 28.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.1554, allocations: 142.7 kB / 291.9 MB, free: 28.87 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003359/0.1558, allocations: 334.7 kB / 292.2 MB, free: 28.67 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006147/0.1564, allocations: 0.5215 MB / 292.7 MB, free: 28.47 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.1564, allocations: 1.375 kB / 292.7 MB, free: 28.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001206/0.1576, allocations: 0.7682 MB / 293.5 MB, free: 28.37 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.1576, allocations: 11.61 kB / 293.5 MB, free: 28.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.1576, allocations: 3.312 kB / 293.5 MB, free: 28.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004236/0.158, allocations: 162.2 kB / 293.7 MB, free: 28.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004998/0.1585, allocations: 195 kB / 293.9 MB, free: 28.35 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00206/0.1606, allocations: 2.782 MB / 296.7 MB, free: 26.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/0.1609, allocations: 29.03 kB / 296.7 MB, free: 26.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-05/0.161, allocations: 37.27 kB / 296.7 MB, free: 26.36 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.0001585/0.1611, allocations: 199 kB / 296.9 MB, free: 26.2 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.1612, allocations: 103.6 kB / 297 MB, free: 26.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.041e-05/0.1613, allocations: 90.94 kB / 297.1 MB, free: 26.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.1613, allocations: 11.03 kB / 297.1 MB, free: 26.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/0.1613, allocations: 6.531 kB / 297.1 MB, free: 26.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.1613, allocations: 6.484 kB / 297.1 MB, free: 26.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005897/0.1619, allocations: 0.5446 MB / 297.7 MB, free: 26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1619, allocations: 1.031 kB / 297.7 MB, free: 26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003788/0.1623, allocations: 137.2 kB / 297.8 MB, free: 26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003409/0.1627, allocations: 162.6 kB / 298 MB, free: 25.98 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.899e-05/0.1627, allocations: 20.31 kB / 298 MB, free: 25.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001797/0.1645, allocations: 2.783 MB / 300.8 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1645, allocations: 1.5 kB / 300.8 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.1657, allocations: 0.9453 MB / 301.7 MB, free: 23.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.693e-05/0.1657, allocations: 63.98 kB / 301.8 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.577e-05/0.1658, allocations: 17.77 kB / 301.8 MB, free: 23.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002678/0.1661, allocations: 47.5 kB / 301.8 MB, free: 23.2 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.1662, allocations: 58.91 kB / 301.9 MB, free: 23.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.584e-05/0.1662, allocations: 26.83 kB / 301.9 MB, free: 23.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002951/0.1665, allocations: 359.4 kB / 302.3 MB, free: 23.01 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1665, allocations: 0 / 302.3 MB, free: 23.01 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005767/0.1671, allocations: 243.7 kB / 302.5 MB, free: 22.98 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.0001652/0.1672, allocations: 130.8 kB / 302.6 MB, free: 22.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.1685, allocations: 0.7803 MB / 303.4 MB, free: 22.54 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1685, allocations: 1.406 kB / 303.4 MB, free: 22.54 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006816/0.1692, allocations: 0.5551 MB / 304 MB, free: 22.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004222/0.1696, allocations: 127.7 kB / 304.1 MB, free: 22.21 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002229/0.1718, allocations: 1.711 MB / 305.8 MB, free: 21.23 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001504/0.172, allocations: 174.5 kB / 306 MB, free: 21.15 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002189/0.1722, allocations: 88.52 kB / 306.1 MB, free: 21.12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/0.1724, allocations: 56.86 kB / 306.1 MB, free: 21.11 MB / 266.7 MB Notification: Performance of SimCode: time 7.72e-07/0.1724, allocations: 0 / 306.1 MB, free: 21.11 MB / 266.7 MB Notification: Performance of Templates: time 0.01183/0.1842, allocations: 10.94 MB / 317.1 MB, free: 12.73 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.366645598318428]