Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009304/0.0009304, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001018/0.001018, allocations: 161.1 kB / 24.99 MB, free: 8.219 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9492/0.9492, allocations: 177 MB / 205.2 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 273 MB, free: 1.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.699e-05/2.891e-05, allocations: 2.312 kB / 273 MB, free: 1.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.013/0.01303, allocations: 5.93 MB / 278.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002853/0.01588, allocations: 1.533 MB / 280.5 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004326/0.01631, allocations: 19.94 kB / 280.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003581/0.01667, allocations: 174.2 kB / 280.7 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005241/0.01719, allocations: 309 kB / 281 MB, free: 9.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008359/0.01803, allocations: 427.2 kB / 281.4 MB, free: 9.312 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003443/0.02147, allocations: 1.43 MB / 282.8 MB, free: 7.879 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004778/0.02195, allocations: 285.7 kB / 283.1 MB, free: 7.578 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001091/0.02304, allocations: 0.772 MB / 283.9 MB, free: 6.805 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000656/0.0237, allocations: 450.8 kB / 284.3 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002116/0.02391, allocations: 140 kB / 284.4 MB, free: 6.227 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003094/0.02422, allocations: 175.9 kB / 284.6 MB, free: 6.055 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001982/0.02442, allocations: 283 kB / 284.9 MB, free: 5.777 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004646/0.02488, allocations: 423.1 kB / 285.3 MB, free: 5.363 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001579/0.02646, allocations: 0.9616 MB / 286.3 MB, free: 4.398 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.02647, allocations: 0 / 286.3 MB, free: 4.398 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.02647, allocations: 0 / 286.3 MB, free: 4.398 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.252e-05/0.02649, allocations: 0 / 286.3 MB, free: 4.398 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.001687/0.02818, allocations: 1.418 MB / 287.7 MB, free: 2.941 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.02822, allocations: 16.03 kB / 287.7 MB, free: 2.926 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003625/0.02858, allocations: 204.2 kB / 287.9 MB, free: 2.727 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005373/0.02912, allocations: 0.5037 MB / 288.4 MB, free: 2.195 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.12e-05/0.02916, allocations: 62.38 kB / 288.5 MB, free: 2.133 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.02927, allocations: 96.38 kB / 288.6 MB, free: 2.039 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009118/0.03018, allocations: 0.8607 MB / 289.4 MB, free: 1.109 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.03019, allocations: 192 / 289.4 MB, free: 1.109 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.46e-05/0.03025, allocations: 36.38 kB / 289.5 MB, free: 1.074 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.699e-05/0.03027, allocations: 23.94 kB / 289.5 MB, free: 1.051 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006311/0.0309, allocations: 423.6 kB / 289.9 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1222/0.1531, allocations: 2.613 MB / 292.5 MB, free: 27.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007284/0.1538, allocations: 439.8 kB / 292.9 MB, free: 27.69 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003725/0.1542, allocations: 231 kB / 293.2 MB, free: 27.62 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.78e-05/0.1542, allocations: 17.28 kB / 293.2 MB, free: 27.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.1542, allocations: 46.95 kB / 293.2 MB, free: 27.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 2.806e-06/0.1542, allocations: 0.6562 kB / 293.2 MB, free: 27.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.00286/0.1571, allocations: 1.497 MB / 294.7 MB, free: 26.95 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.528e-05/0.1571, allocations: 62.97 kB / 294.8 MB, free: 26.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005681/0.1577, allocations: 0.5493 MB / 295.3 MB, free: 26.6 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.573e-05/0.1577, allocations: 37.62 kB / 295.4 MB, free: 26.56 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002211/0.158, allocations: 0.4915 MB / 295.9 MB, free: 26.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.1581, allocations: 266.1 kB / 296.1 MB, free: 26.03 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002128/0.1583, allocations: 152.9 kB / 296.3 MB, free: 25.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.1584, allocations: 0.5531 MB / 296.8 MB, free: 25.42 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003378/0.1588, allocations: 143.8 kB / 297 MB, free: 25.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004001/0.1592, allocations: 333.1 kB / 297.3 MB, free: 25.17 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007487/0.1599, allocations: 0.5227 MB / 297.8 MB, free: 24.85 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.1599, allocations: 1.312 kB / 297.8 MB, free: 24.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001399/0.1613, allocations: 0.7697 MB / 298.6 MB, free: 24.58 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.1613, allocations: 8.156 kB / 298.6 MB, free: 24.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.1613, allocations: 4.406 kB / 298.6 MB, free: 24.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004949/0.1618, allocations: 162.2 kB / 298.8 MB, free: 24.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006074/0.1624, allocations: 190.6 kB / 298.9 MB, free: 24.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002301/0.1647, allocations: 2.781 MB / 301.7 MB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003961/0.1651, allocations: 27.41 kB / 301.7 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.335e-05/0.1652, allocations: 42.47 kB / 301.8 MB, free: 22.2 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.0002054/0.1654, allocations: 206.2 kB / 302 MB, free: 22 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.1655, allocations: 99.64 kB / 302.1 MB, free: 21.95 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.1656, allocations: 92.75 kB / 302.2 MB, free: 21.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1656, allocations: 6.188 kB / 302.2 MB, free: 21.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.916e-05/0.1657, allocations: 5.375 kB / 302.2 MB, free: 21.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.1657, allocations: 3.375 kB / 302.2 MB, free: 21.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006873/0.1664, allocations: 0.5509 MB / 302.7 MB, free: 21.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.1664, allocations: 4 kB / 302.7 MB, free: 21.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004744/0.1668, allocations: 140.2 kB / 302.9 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004307/0.1673, allocations: 161 kB / 303 MB, free: 21.54 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.072e-05/0.1673, allocations: 18.53 kB / 303.1 MB, free: 21.53 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/0.1695, allocations: 2.777 MB / 305.8 MB, free: 19.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.1695, allocations: 1.625 kB / 305.8 MB, free: 19.21 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00142/0.1709, allocations: 0.9443 MB / 306.8 MB, free: 18.79 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.892e-05/0.171, allocations: 65.98 kB / 306.8 MB, free: 18.74 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.899e-05/0.1711, allocations: 16.28 kB / 306.9 MB, free: 18.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003582/0.1714, allocations: 45.42 kB / 306.9 MB, free: 18.72 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.1716, allocations: 60.92 kB / 307 MB, free: 18.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.401e-05/0.1716, allocations: 27.19 kB / 307 MB, free: 18.7 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003009/0.1719, allocations: 357.8 kB / 307.3 MB, free: 18.53 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1719, allocations: 0 / 307.3 MB, free: 18.53 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000771/0.1727, allocations: 241.7 kB / 307.6 MB, free: 18.5 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.0001996/0.1729, allocations: 139.3 kB / 307.7 MB, free: 18.4 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.1741, allocations: 0.7731 MB / 308.5 MB, free: 18.05 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1741, allocations: 0 / 308.5 MB, free: 18.05 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007114/0.1748, allocations: 0.5512 MB / 309 MB, free: 17.69 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005746/0.1754, allocations: 144.4 kB / 309.2 MB, free: 17.62 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/0.1778, allocations: 1.715 MB / 310.9 MB, free: 16.1 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.1779, allocations: 175.3 kB / 311.1 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002726/0.1781, allocations: 89.09 kB / 311.2 MB, free: 15.82 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.1783, allocations: 52.47 kB / 311.2 MB, free: 15.77 MB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.1783, allocations: 0 / 311.2 MB, free: 15.77 MB / 266.7 MB Notification: Performance of Templates: time 0.01461/0.1929, allocations: 10.92 MB / 322.1 MB, free: 5.066 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.1616015371400863]