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.0009415/0.0009415, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.0008617/0.0008617, allocations: 140 kB / 24.89 MB, free: 9.227 MB / 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.9822/0.9822, allocations: 173.3 MB / 201.5 MB, free: 9.219 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 1.402e-06/1.402e-06, allocations: 0 / 268.5 MB, free: 6.152 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.865e-05/2.005e-05, allocations: 2.312 kB / 268.5 MB, free: 6.148 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004649/0.004669, allocations: 5.851 MB / 274.4 MB, free: 272 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00236/0.00703, allocations: 1.567 MB / 276 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003398/0.00737, allocations: 23.94 kB / 276 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002746/0.007644, allocations: 178.2 kB / 276.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004002/0.008044, allocations: 313 kB / 276.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005865/0.008631, allocations: 411.3 kB / 276.9 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00085/0.009481, allocations: 1.433 MB / 278.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003083/0.009789, allocations: 293.7 kB / 278.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000608/0.0104, allocations: 0.7758 MB / 279.4 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004045/0.0108, allocations: 450.8 kB / 279.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00012/0.01092, allocations: 139.9 kB / 279.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002155/0.01114, allocations: 168 kB / 280.1 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.01127, allocations: 279.1 kB / 280.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002547/0.01152, allocations: 427 kB / 280.8 MB, free: 9.812 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006827/0.01221, allocations: 0.9461 MB / 281.7 MB, free: 8.863 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.01221, allocations: 0 / 281.7 MB, free: 8.863 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.01221, allocations: 0 / 281.7 MB, free: 8.863 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.01222, allocations: 0 / 281.7 MB, free: 8.863 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.001266/0.01349, allocations: 1.305 MB / 283 MB, free: 7.531 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.01352, allocations: 8.922 kB / 283 MB, free: 7.523 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.01366, allocations: 148.8 kB / 283.2 MB, free: 7.379 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003869/0.01405, allocations: 377.2 kB / 283.6 MB, free: 6.984 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.634e-05/0.01409, allocations: 66.38 kB / 283.6 MB, free: 6.918 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.014e-05/0.01418, allocations: 100.3 kB / 283.7 MB, free: 6.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006374/0.01481, allocations: 0.806 MB / 284.5 MB, free: 5.945 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.01483, allocations: 192 / 284.5 MB, free: 5.945 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.608e-05/0.01488, allocations: 36.38 kB / 284.6 MB, free: 5.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.422e-05/0.01489, allocations: 31.88 kB / 284.6 MB, free: 5.879 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003561/0.01525, allocations: 285.7 kB / 284.9 MB, free: 5.602 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002467/0.01771, allocations: 2.044 MB / 286.9 MB, free: 3.461 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003796/0.01809, allocations: 373.2 kB / 287.3 MB, free: 3.078 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.01827, allocations: 175.2 kB / 287.4 MB, free: 2.906 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-05/0.0183, allocations: 12.66 kB / 287.5 MB, free: 2.895 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.01833, allocations: 47.22 kB / 287.5 MB, free: 2.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 2.184e-06/0.01833, allocations: 0 / 287.5 MB, free: 2.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.00157/0.0199, allocations: 1.141 MB / 288.6 MB, free: 1.668 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.656e-05/0.01993, allocations: 60.06 kB / 288.7 MB, free: 1.594 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002888/0.02022, allocations: 479 kB / 289.2 MB, free: 1.113 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.02025, allocations: 41.7 kB / 289.2 MB, free: 1.066 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.0204, allocations: 381.5 kB / 289.6 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.02053, allocations: 281.6 kB / 289.9 MB, free: 416 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/0.02067, allocations: 142.5 kB / 290 MB, free: 268 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.1057/0.1263, allocations: 398.2 kB / 290.4 MB, free: 25.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003086/0.1266, allocations: 90.33 kB / 290.5 MB, free: 25.21 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.1269, allocations: 239.6 kB / 290.7 MB, free: 25.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004343/0.1273, allocations: 415.2 kB / 291.1 MB, free: 24.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.1273, allocations: 1.156 kB / 291.1 MB, free: 24.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0008719/0.1282, allocations: 0.5476 MB / 291.7 MB, free: 24.88 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.1282, allocations: 7.688 kB / 291.7 MB, free: 24.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.1282, allocations: 6.594 kB / 291.7 MB, free: 24.87 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003472/0.1285, allocations: 145.4 kB / 291.8 MB, free: 24.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005722/0.1291, allocations: 221.9 kB / 292 MB, free: 24.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001674/0.1308, allocations: 1.976 MB / 294 MB, free: 23.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003237/0.1311, allocations: 32.86 kB / 294 MB, free: 23.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.016e-05/0.1311, allocations: 26.42 kB / 294.1 MB, free: 23.59 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.0002043/0.1314, allocations: 155.3 kB / 294.2 MB, free: 23.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.1315, allocations: 72.55 kB / 294.3 MB, free: 23.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.261e-05/0.1316, allocations: 92.25 kB / 294.4 MB, free: 23.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.1316, allocations: 10.75 kB / 294.4 MB, free: 23.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/0.1316, allocations: 2.406 kB / 294.4 MB, free: 23.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.1316, allocations: 5 kB / 294.4 MB, free: 23.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005669/0.1322, allocations: 434 kB / 294.8 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.1322, allocations: 3.938 kB / 294.8 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004416/0.1326, allocations: 169.4 kB / 295 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003068/0.1329, allocations: 141 kB / 295.1 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.274e-05/0.133, allocations: 20.81 kB / 295.2 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001474/0.1344, allocations: 1.977 MB / 297.1 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1344, allocations: 4.562 kB / 297.1 MB, free: 22.08 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008641/0.1353, allocations: 0.6793 MB / 297.8 MB, free: 21.92 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.558e-05/0.1354, allocations: 60.55 kB / 297.9 MB, free: 21.91 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.147e-05/0.1354, allocations: 19.88 kB / 297.9 MB, free: 21.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.1357, allocations: 43.41 kB / 297.9 MB, free: 21.91 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.1358, allocations: 62.17 kB / 298 MB, free: 21.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.392e-05/0.1358, allocations: 16.44 kB / 298 MB, free: 21.91 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002123/0.136, allocations: 221.2 kB / 298.2 MB, free: 21.89 MB / 266.7 MB Notification: Performance of sort global known variables: time 2e-08/0.136, allocations: 4 kB / 298.2 MB, free: 21.88 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005969/0.1366, allocations: 239 kB / 298.5 MB, free: 21.88 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.0001741/0.1368, allocations: 114.1 kB / 298.6 MB, free: 21.82 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009131/0.1377, allocations: 0.6392 MB / 299.2 MB, free: 21.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-05/0.1377, allocations: 7.438 kB / 299.2 MB, free: 21.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005606/0.1383, allocations: 458.5 kB / 299.7 MB, free: 21.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/0.1387, allocations: 141.1 kB / 299.8 MB, free: 21.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.1411, allocations: 1.504 MB / 301.3 MB, free: 20.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001534/0.1412, allocations: 174 kB / 301.5 MB, free: 20.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002775/0.1415, allocations: 90.09 kB / 301.6 MB, free: 20.65 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000341/0.1418, allocations: 206 kB / 301.8 MB, free: 20.61 MB / 266.7 MB Notification: Performance of SimCode: time 1.943e-06/0.1418, allocations: 0 / 301.8 MB, free: 20.61 MB / 266.7 MB Notification: Performance of Templates: time 0.01364/0.1555, allocations: 11.73 MB / 313.5 MB, free: 13.5 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 -s gbode -gbm=radauIIA3 -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: 2.88963842112571]