Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009745/0.0009745, allocations: 76.88 kB / 22.29 MB, free: 2.047 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.001037/0.001037, allocations: 163.8 kB / 25.69 MB, free: 7.957 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8307/0.8307, allocations: 158.6 MB / 187.6 MB, free: 2.758 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 251.6 MB, free: 7.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.106e-05/1.25e-05, allocations: 2.312 kB / 251.6 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.00448/0.004493, allocations: 5.483 MB / 257 MB, free: 1.711 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.006793, allocations: 1.488 MB / 258.5 MB, free: 216 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003026/0.007095, allocations: 19.94 kB / 258.5 MB, free: 196 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002516/0.007347, allocations: 158.4 kB / 258.7 MB, free: 36 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004092/0.007756, allocations: 301.1 kB / 259 MB, free: 15.74 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005758/0.008332, allocations: 355.4 kB / 259.3 MB, free: 15.39 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008841/0.009216, allocations: 1.28 MB / 260.6 MB, free: 14.11 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003178/0.009534, allocations: 289.4 kB / 260.9 MB, free: 13.79 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006779/0.01021, allocations: 0.694 MB / 261.6 MB, free: 13.1 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003903/0.0106, allocations: 418.9 kB / 262 MB, free: 12.69 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001109/0.01071, allocations: 124 kB / 262.1 MB, free: 12.57 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001747/0.01089, allocations: 155.9 kB / 262.3 MB, free: 12.41 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.01102, allocations: 263.1 kB / 262.5 MB, free: 12.16 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002589/0.01128, allocations: 391.2 kB / 262.9 MB, free: 11.77 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009132/0.01219, allocations: 0.8838 MB / 263.8 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.01219, allocations: 0 / 263.8 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.01219, allocations: 0 / 263.8 MB, free: 10.89 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.829e-05/0.01221, allocations: 0 / 263.8 MB, free: 10.89 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.001203/0.01342, allocations: 1.208 MB / 265 MB, free: 9.652 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.021e-05/0.01345, allocations: 12.03 kB / 265 MB, free: 9.641 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001319/0.01358, allocations: 136.8 kB / 265.2 MB, free: 9.508 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003563/0.01393, allocations: 347.2 kB / 265.5 MB, free: 9.141 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/0.01397, allocations: 62.38 kB / 265.6 MB, free: 9.078 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.07e-05/0.01405, allocations: 88.33 kB / 265.6 MB, free: 8.992 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006287/0.01468, allocations: 0.8129 MB / 266.5 MB, free: 8.113 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.01469, allocations: 192 / 266.5 MB, free: 8.113 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.452e-05/0.01474, allocations: 36.38 kB / 266.5 MB, free: 8.078 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.01475, allocations: 31.86 kB / 266.5 MB, free: 8.047 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003259/0.01508, allocations: 261.8 kB / 266.8 MB, free: 7.789 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00212/0.0172, allocations: 2.005 MB / 268.8 MB, free: 5.703 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000358/0.01755, allocations: 363 kB / 269.1 MB, free: 5.34 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.01771, allocations: 154.7 kB / 269.3 MB, free: 5.188 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.778e-05/0.01775, allocations: 16.64 kB / 269.3 MB, free: 5.172 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.01777, allocations: 43.22 kB / 269.3 MB, free: 5.121 MB / 250.7 MB Notification: Performance of pre-optimization done (n=67): time 1.944e-06/0.01777, allocations: 0 / 269.3 MB, free: 5.121 MB / 250.7 MB Notification: Performance of matching and sorting (n=71): time 0.001724/0.0195, allocations: 1.116 MB / 270.5 MB, free: 3.98 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.584e-05/0.01952, allocations: 60.06 kB / 270.5 MB, free: 3.91 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.01975, allocations: 439 kB / 270.9 MB, free: 3.469 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.528e-05/0.01979, allocations: 37.7 kB / 271 MB, free: 3.426 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.01992, allocations: 349.6 kB / 271.3 MB, free: 3.078 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.02003, allocations: 257.7 kB / 271.6 MB, free: 2.824 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.02016, allocations: 134.6 kB / 271.7 MB, free: 2.684 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.02026, allocations: 390.5 kB / 272.1 MB, free: 2.293 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.02038, allocations: 81.97 kB / 272.2 MB, free: 2.215 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.02055, allocations: 217.2 kB / 272.4 MB, free: 1.969 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003237/0.02087, allocations: 368.5 kB / 272.7 MB, free: 1.57 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.02087, allocations: 4 kB / 272.7 MB, free: 1.566 MB / 250.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0005704/0.02144, allocations: 0.5075 MB / 273.3 MB, free: 1.047 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.02146, allocations: 8 kB / 273.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.02146, allocations: 4 kB / 273.3 MB, free: 1.035 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002846/0.02175, allocations: 128.5 kB / 273.4 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003552/0.0221, allocations: 179.8 kB / 273.6 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.0236, allocations: 1.942 MB / 275.5 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001857/0.02379, allocations: 28 kB / 275.5 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.817e-05/0.02382, allocations: 23.98 kB / 275.6 MB, free: 14.66 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * 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,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001398/0.02396, allocations: 153.7 kB / 275.7 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.412e-05/0.02403, allocations: 71.88 kB / 275.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.713e-05/0.02411, allocations: 81.94 kB / 275.9 MB, free: 14.35 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.02411, allocations: 8 kB / 275.9 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.02412, allocations: 7.938 kB / 275.9 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.02413, allocations: 3.984 kB / 275.9 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003768/0.0245, allocations: 422.6 kB / 276.3 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.02451, allocations: 0 / 276.3 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002962/0.0248, allocations: 135.8 kB / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002633/0.02506, allocations: 136.7 kB / 276.6 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.122e-05/0.0251, allocations: 23.92 kB / 276.6 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001625/0.02672, allocations: 1.938 MB / 278.5 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.02672, allocations: 0 / 278.5 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006922/0.02741, allocations: 0.6705 MB / 279.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.02746, allocations: 59.53 kB / 279.2 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.004e-05/0.02751, allocations: 16 kB / 279.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.02772, allocations: 47.97 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.972e-05/0.02779, allocations: 56.48 kB / 279.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-05/0.02782, allocations: 19.98 kB / 279.4 MB, free: 10.69 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001197/0.02794, allocations: 192.3 kB / 279.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02794, allocations: 0 / 279.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003888/0.02833, allocations: 220 kB / 279.8 MB, free: 10.29 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.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001518/0.02848, allocations: 124.2 kB / 279.9 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007149/0.02919, allocations: 0.6049 MB / 280.5 MB, free: 9.551 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/0.0292, allocations: 8 kB / 280.5 MB, free: 9.543 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004619/0.02967, allocations: 459.9 kB / 281 MB, free: 9.078 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.02999, allocations: 130.3 kB / 281.1 MB, free: 8.945 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001525/0.03151, allocations: 1.416 MB / 282.5 MB, free: 7.492 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.47e-05/0.03161, allocations: 167.1 kB / 282.7 MB, free: 7.305 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001689/0.03178, allocations: 80.83 kB / 282.8 MB, free: 7.227 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002697/0.03205, allocations: 189.2 kB / 282.9 MB, free: 7.043 MB / 266.7 MB Notification: Performance of SimCode: time 7.52e-07/0.03205, allocations: 0 / 282.9 MB, free: 7.043 MB / 266.7 MB Notification: Performance of Templates: time 0.01248/0.04453, allocations: 10.91 MB / 293.9 MB, free: 12.16 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.9114697980694473]