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.0009496/0.0009496, allocations: 79.75 kB / 22.45 MB, free: 2.09 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.000938/0.000938, allocations: 170.9 kB / 25.75 MB, free: 8.5 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.8372/0.8372, allocations: 158.6 MB / 187.5 MB, free: 2.895 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.533e-06/1.533e-06, allocations: 3.938 kB / 251.1 MB, free: 7.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.683e-05/1.837e-05, allocations: 9.266 kB / 251.1 MB, free: 7.762 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004382/0.004401, allocations: 5.58 MB / 256.7 MB, free: 2.148 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001937/0.006338, allocations: 1.418 MB / 258.1 MB, free: 0.7188 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002515/0.006589, allocations: 15.94 kB / 258.1 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002207/0.00681, allocations: 158.4 kB / 258.3 MB, free: 0.5469 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003746/0.007185, allocations: 301.2 kB / 258.6 MB, free: 256 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005996/0.007784, allocations: 355.3 kB / 258.9 MB, free: 15.9 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008913/0.008676, allocations: 1.272 MB / 260.2 MB, free: 14.62 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002926/0.008968, allocations: 273.4 kB / 260.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006215/0.00959, allocations: 0.7134 MB / 261.2 MB, free: 13.62 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003967/0.009986, allocations: 418.9 kB / 261.6 MB, free: 13.21 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001181/0.0101, allocations: 124 kB / 261.7 MB, free: 13.09 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003571/0.01046, allocations: 156 kB / 261.9 MB, free: 12.94 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002926/0.01075, allocations: 255.2 kB / 262.1 MB, free: 12.69 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005127/0.01127, allocations: 399.1 kB / 262.5 MB, free: 12.3 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008604/0.01213, allocations: 0.876 MB / 263.4 MB, free: 11.42 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.01213, allocations: 0 / 263.4 MB, free: 11.42 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.01213, allocations: 0 / 263.4 MB, free: 11.42 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.841e-05/0.01215, allocations: 0 / 263.4 MB, free: 11.42 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.001475/0.01363, allocations: 1.325 MB / 264.7 MB, free: 10.05 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.01367, allocations: 12.03 kB / 264.7 MB, free: 10.04 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001875/0.01385, allocations: 172.3 kB / 264.9 MB, free: 9.875 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004778/0.01433, allocations: 469.9 kB / 265.4 MB, free: 9.387 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.705e-05/0.01437, allocations: 62.31 kB / 265.4 MB, free: 9.324 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.462e-05/0.01446, allocations: 88.33 kB / 265.5 MB, free: 9.238 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008953/0.01536, allocations: 0.8564 MB / 266.4 MB, free: 8.312 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.01537, allocations: 8.188 kB / 266.4 MB, free: 8.305 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.356e-05/0.01543, allocations: 32.38 kB / 266.4 MB, free: 8.273 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.01544, allocations: 27.92 kB / 266.4 MB, free: 8.246 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005807/0.01602, allocations: 391.6 kB / 266.8 MB, free: 7.863 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002826/0.01885, allocations: 2.573 MB / 269.4 MB, free: 5.188 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006298/0.01948, allocations: 430.9 kB / 269.8 MB, free: 4.754 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002654/0.01974, allocations: 209.5 kB / 270 MB, free: 4.547 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.952e-05/0.01978, allocations: 20.64 kB / 270 MB, free: 4.527 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.01981, allocations: 46.05 kB / 270.1 MB, free: 4.473 MB / 250.7 MB Notification: Performance of pre-optimization done (n=67): time 2.455e-06/0.01981, allocations: 0 / 270.1 MB, free: 4.473 MB / 250.7 MB Notification: Performance of matching and sorting (n=71): time 0.002245/0.02206, allocations: 1.455 MB / 271.5 MB, free: 2.98 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.693e-05/0.02209, allocations: 56.06 kB / 271.6 MB, free: 2.914 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003516/0.02244, allocations: 498.6 kB / 272.1 MB, free: 2.41 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.02248, allocations: 37.7 kB / 272.1 MB, free: 2.367 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001944/0.02267, allocations: 455.1 kB / 272.6 MB, free: 1.914 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.02281, allocations: 261.8 kB / 272.8 MB, free: 1.656 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001466/0.02296, allocations: 140.3 kB / 272.9 MB, free: 1.508 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.0231, allocations: 0.5468 MB / 273.5 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002371/0.02334, allocations: 141.9 kB / 273.6 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002893/0.02363, allocations: 291.1 kB / 273.9 MB, free: 492 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005587/0.02419, allocations: 482.7 kB / 274.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.02419, allocations: 4 kB / 274.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001246/0.02544, allocations: 0.7152 MB / 275.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.02546, allocations: 4 kB / 275.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.02547, allocations: 4 kB / 275.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003726/0.02584, allocations: 150.8 kB / 275.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004201/0.02626, allocations: 179.8 kB / 275.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/0.02847, allocations: 2.735 MB / 278.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000275/0.02875, allocations: 27.98 kB / 278.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.641e-05/0.02879, allocations: 31.98 kB / 278.2 MB, free: 11.98 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.0001968/0.02898, allocations: 200.4 kB / 278.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.961e-05/0.02908, allocations: 87.58 kB / 278.5 MB, free: 11.69 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.9e-05/0.02917, allocations: 85.88 kB / 278.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.02918, allocations: 8 kB / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.02919, allocations: 4 kB / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.02919, allocations: 7.984 kB / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005173/0.02971, allocations: 0.5208 MB / 279.1 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.02971, allocations: 0 / 279.1 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003607/0.03007, allocations: 143.8 kB / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003586/0.03043, allocations: 155.2 kB / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.691e-05/0.03048, allocations: 19.98 kB / 279.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002386/0.03287, allocations: 2.735 MB / 282.2 MB, free: 7.855 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.03287, allocations: 4 kB / 282.2 MB, free: 7.852 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.03405, allocations: 0.9231 MB / 283.1 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.387e-05/0.03414, allocations: 63.5 kB / 283.2 MB, free: 6.844 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.073e-05/0.0342, allocations: 16 kB / 283.2 MB, free: 6.828 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.03446, allocations: 47.97 kB / 283.2 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.776e-05/0.03455, allocations: 52.55 kB / 283.3 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.092e-05/0.03458, allocations: 23.98 kB / 283.3 MB, free: 6.707 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002287/0.03481, allocations: 326.8 kB / 283.6 MB, free: 6.391 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03481, allocations: 0 / 283.6 MB, free: 6.391 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005734/0.03539, allocations: 220 kB / 283.8 MB, free: 6.176 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.000194/0.03558, allocations: 142.9 kB / 284 MB, free: 6.031 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001116/0.0367, allocations: 0.7546 MB / 284.7 MB, free: 5.258 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.0367, allocations: 3.938 kB / 284.7 MB, free: 5.254 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006737/0.03737, allocations: 0.5417 MB / 285.3 MB, free: 4.691 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00045/0.03782, allocations: 130.2 kB / 285.4 MB, free: 4.566 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002171/0.03999, allocations: 1.621 MB / 287 MB, free: 2.902 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001287/0.04012, allocations: 171 kB / 287.2 MB, free: 2.711 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002113/0.04033, allocations: 80.83 kB / 287.3 MB, free: 2.633 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.04045, allocations: 48.48 kB / 287.3 MB, free: 2.586 MB / 266.7 MB Notification: Performance of SimCode: time 1.443e-06/0.04045, allocations: 4 kB / 287.3 MB, free: 2.582 MB / 266.7 MB Notification: Performance of Templates: time 0.01357/0.05402, allocations: 10.36 MB / 297.7 MB, free: 8.258 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.9137922460213304]