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.0009294/0.0009294, 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.0009647/0.0009647, allocations: 146.2 kB / 24.89 MB, free: 8.727 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.9236/0.9236, allocations: 173.4 MB / 201.5 MB, free: 8.77 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.643e-06/1.643e-06, allocations: 0 / 268.5 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.786e-05/1.951e-05, allocations: 6.25 kB / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005582/0.005602, allocations: 5.816 MB / 274.3 MB, free: 184 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002351/0.007953, allocations: 1.563 MB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002965/0.00825, allocations: 27.81 kB / 275.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002614/0.008511, allocations: 170.3 kB / 276.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006323/0.009143, allocations: 313 kB / 276.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006069/0.00975, allocations: 415.3 kB / 276.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008957/0.01065, allocations: 1.433 MB / 278.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003088/0.01095, allocations: 301.7 kB / 278.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006571/0.01161, allocations: 0.7603 MB / 279.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003958/0.01201, allocations: 462.7 kB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001203/0.01213, allocations: 132 kB / 279.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001781/0.01231, allocations: 168 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.01244, allocations: 279.1 kB / 280.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002905/0.01274, allocations: 427 kB / 280.7 MB, free: 9.738 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008002/0.01354, allocations: 0.9539 MB / 281.6 MB, free: 8.781 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.01354, allocations: 0 / 281.6 MB, free: 8.781 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.01354, allocations: 0 / 281.6 MB, free: 8.781 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.01355, allocations: 0 / 281.6 MB, free: 8.781 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.001363/0.01492, allocations: 1.301 MB / 282.9 MB, free: 7.453 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.931e-05/0.01494, allocations: 12.92 kB / 283 MB, free: 7.441 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.0151, allocations: 148.8 kB / 283.1 MB, free: 7.297 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003953/0.01549, allocations: 377.2 kB / 283.5 MB, free: 6.902 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002759/0.01577, allocations: 70.36 kB / 283.5 MB, free: 6.832 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.35e-05/0.01586, allocations: 92.33 kB / 283.6 MB, free: 6.742 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006244/0.01649, allocations: 0.806 MB / 284.4 MB, free: 5.867 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.0165, allocations: 4.125 kB / 284.4 MB, free: 5.863 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.674e-05/0.01655, allocations: 40.38 kB / 284.5 MB, free: 5.824 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.01656, allocations: 23.94 kB / 284.5 MB, free: 5.801 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003495/0.01691, allocations: 269.8 kB / 284.8 MB, free: 5.539 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002404/0.01932, allocations: 2.06 MB / 286.8 MB, free: 3.383 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003668/0.01968, allocations: 357.2 kB / 287.2 MB, free: 3.016 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.01985, allocations: 187.2 kB / 287.4 MB, free: 2.828 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.744e-05/0.01989, allocations: 20.58 kB / 287.4 MB, free: 2.809 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.447e-05/0.01992, allocations: 43.22 kB / 287.4 MB, free: 2.758 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 1.693e-06/0.01992, allocations: 0 / 287.4 MB, free: 2.758 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.001491/0.02141, allocations: 1.132 MB / 288.6 MB, free: 1.598 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.531e-05/0.02143, allocations: 60.06 kB / 288.6 MB, free: 1.523 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002744/0.02171, allocations: 487 kB / 289.1 MB, free: 1.035 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/0.02175, allocations: 41.69 kB / 289.1 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.02189, allocations: 385.5 kB / 289.5 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.02202, allocations: 277.6 kB / 289.8 MB, free: 336 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.02216, allocations: 146.5 kB / 289.9 MB, free: 184 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.09636/0.1185, allocations: 388.3 kB / 290.3 MB, free: 25.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003052/0.1188, allocations: 91.06 kB / 290.4 MB, free: 25.14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.119, allocations: 238.3 kB / 290.6 MB, free: 25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004311/0.1195, allocations: 420.9 kB / 291 MB, free: 24.87 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.1195, allocations: 4.719 kB / 291 MB, free: 24.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009037/0.1204, allocations: 0.5428 MB / 291.6 MB, free: 24.81 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.1204, allocations: 7.844 kB / 291.6 MB, free: 24.81 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.1204, allocations: 8.203 kB / 291.6 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003587/0.1208, allocations: 141.9 kB / 291.7 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004641/0.1212, allocations: 192.3 kB / 291.9 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001635/0.1229, allocations: 1.973 MB / 293.9 MB, free: 23.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.1232, allocations: 29.84 kB / 293.9 MB, free: 23.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.755e-05/0.1232, allocations: 26.27 kB / 293.9 MB, free: 23.52 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.0002004/0.1234, allocations: 156.5 kB / 294.1 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.1235, allocations: 73.59 kB / 294.2 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.005e-05/0.1236, allocations: 90.09 kB / 294.3 MB, free: 23.4 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1236, allocations: 7.156 kB / 294.3 MB, free: 23.4 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/0.1236, allocations: 3.719 kB / 294.3 MB, free: 23.4 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.1236, allocations: 7.922 kB / 294.3 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005439/0.1242, allocations: 438.9 kB / 294.7 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.1242, allocations: 480 / 294.7 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003468/0.1245, allocations: 145.8 kB / 294.9 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003101/0.1248, allocations: 140.8 kB / 295 MB, free: 23.3 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.5e-05/0.1249, allocations: 20.8 kB / 295 MB, free: 23.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001422/0.1263, allocations: 1.98 MB / 297 MB, free: 22.01 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1263, allocations: 0 / 297 MB, free: 22.01 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008772/0.1272, allocations: 0.6806 MB / 297.7 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.442e-05/0.1272, allocations: 59.89 kB / 297.7 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.028e-05/0.1273, allocations: 16.97 kB / 297.7 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.1275, allocations: 53.2 kB / 297.8 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.79e-05/0.1276, allocations: 60.55 kB / 297.9 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.884e-05/0.1277, allocations: 16.97 kB / 297.9 MB, free: 21.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002071/0.1279, allocations: 218.1 kB / 298.1 MB, free: 21.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1279, allocations: 0 / 298.1 MB, free: 21.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005612/0.1284, allocations: 236.7 kB / 298.3 MB, free: 21.82 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.0001685/0.1286, allocations: 109 kB / 298.4 MB, free: 21.75 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008708/0.1295, allocations: 0.6392 MB / 299.1 MB, free: 21.59 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-05/0.1295, allocations: 9.781 kB / 299.1 MB, free: 21.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005481/0.13, allocations: 457.7 kB / 299.5 MB, free: 21.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003787/0.1304, allocations: 139.7 kB / 299.7 MB, free: 21.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001912/0.1323, allocations: 1.506 MB / 301.2 MB, free: 20.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001448/0.1325, allocations: 181.7 kB / 301.3 MB, free: 20.6 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002448/0.1327, allocations: 86.95 kB / 301.4 MB, free: 20.58 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003237/0.133, allocations: 202.7 kB / 301.6 MB, free: 20.53 MB / 266.7 MB Notification: Performance of SimCode: time 1.051e-06/0.133, allocations: 0 / 301.6 MB, free: 20.53 MB / 266.7 MB Notification: Performance of Templates: time 0.01305/0.1461, allocations: 11.54 MB / 313.2 MB, free: 13.68 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: 2.820968896150589]