Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.0009971/0.0009971, allocations: 85.17 kB / 21.5 MB, free: 2.988 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.0009233/0.0009233, allocations: 145.6 kB / 24.89 MB, free: 8.781 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.9233/0.9233, allocations: 173.4 MB / 201.5 MB, free: 8.277 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.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 268.6 MB, free: 9.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.398e-05/1.523e-05, allocations: 2.312 kB / 268.6 MB, free: 9.707 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.006513/0.006528, allocations: 2.952 MB / 271.5 MB, free: 6.758 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004171/0.0107, allocations: 0.729 MB / 272.2 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.01083, allocations: 7.938 kB / 272.3 MB, free: 6.02 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.01097, allocations: 47.52 kB / 272.3 MB, free: 5.973 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001783/0.01114, allocations: 108.1 kB / 272.4 MB, free: 5.867 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002473/0.01139, allocations: 124.7 kB / 272.5 MB, free: 5.746 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.01177, allocations: 436.5 kB / 273 MB, free: 5.32 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.01193, allocations: 86.3 kB / 273 MB, free: 5.23 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.01216, allocations: 231.5 kB / 273.3 MB, free: 5.004 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001734/0.01233, allocations: 139.6 kB / 273.4 MB, free: 4.867 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.083e-05/0.01238, allocations: 40 kB / 273.4 MB, free: 4.828 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.449e-05/0.01243, allocations: 44 kB / 273.5 MB, free: 4.785 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.038e-05/0.01249, allocations: 80.59 kB / 273.6 MB, free: 4.707 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.0126, allocations: 123.7 kB / 273.7 MB, free: 4.586 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002944/0.01289, allocations: 259.1 kB / 273.9 MB, free: 4.332 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.01289, allocations: 4.484 kB / 273.9 MB, free: 4.328 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.01289, allocations: 4 kB / 273.9 MB, free: 4.324 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.0129, allocations: 0 / 273.9 MB, free: 4.324 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.003757/0.01666, allocations: 0.5609 MB / 274.5 MB, free: 3.73 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.01669, allocations: 8.031 kB / 274.5 MB, free: 3.723 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.053e-05/0.01676, allocations: 44.91 kB / 274.6 MB, free: 3.68 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002346/0.01699, allocations: 197.2 kB / 274.7 MB, free: 3.461 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.01701, allocations: 20.88 kB / 274.8 MB, free: 3.441 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.168e-05/0.01704, allocations: 28.36 kB / 274.8 MB, free: 3.414 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003414/0.01738, allocations: 295.3 kB / 275.1 MB, free: 3.102 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.01739, allocations: 192 / 275.1 MB, free: 3.102 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.01741, allocations: 12.38 kB / 275.1 MB, free: 3.09 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.01742, allocations: 7.938 kB / 275.1 MB, free: 3.082 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.01754, allocations: 67.47 kB / 275.2 MB, free: 3.02 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000993/0.01853, allocations: 0.7912 MB / 276 MB, free: 2.18 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001863/0.01872, allocations: 94.45 kB / 276.1 MB, free: 2.078 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.542e-05/0.01877, allocations: 28.8 kB / 276.1 MB, free: 2.047 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.01878, allocations: 4.219 kB / 276.1 MB, free: 2.043 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001484/0.01893, allocations: 172.7 kB / 276.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of pre-optimization done (n=13): time 1.092e-06/0.01893, allocations: 0 / 276.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of matching and sorting (n=13): time 0.00363/0.02256, allocations: 262.2 kB / 276.5 MB, free: 1.578 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/0.02261, allocations: 106.8 kB / 276.6 MB, free: 1.449 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000172/0.02278, allocations: 240.9 kB / 276.9 MB, free: 1.195 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.0228, allocations: 33.7 kB / 276.9 MB, free: 1.156 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.929e-05/0.02289, allocations: 191.9 kB / 277.1 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.08e-05/0.02292, allocations: 47.61 kB / 277.1 MB, free: 0.918 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.179e-05/0.02299, allocations: 49.88 kB / 277.2 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.894e-05/0.02308, allocations: 342.8 kB / 277.5 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.56e-05/0.02314, allocations: 46.16 kB / 277.5 MB, free: 476 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.02325, allocations: 198 kB / 277.7 MB, free: 216 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001536/0.02341, allocations: 167.9 kB / 277.9 MB, free: 4 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.02341, allocations: 3.938 kB / 277.9 MB, free: 0 / 250.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003558/0.02376, allocations: 268.3 kB / 278.2 MB, free: 15.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.02379, allocations: 33.7 kB / 278.2 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.0238, allocations: 4 kB / 278.2 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002375/0.02403, allocations: 72.81 kB / 278.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.02416, allocations: 51.97 kB / 278.3 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009899/0.02515, allocations: 1.458 MB / 279.8 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003167/0.02832, allocations: 39.83 kB / 279.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.02834, allocations: 12 kB / 279.8 MB, free: 13.95 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: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 8.636e-05/0.02842, allocations: 121.8 kB / 280 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.02845, allocations: 19.98 kB / 280 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.959e-05/0.02848, allocations: 25.7 kB / 280 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.02848, allocations: 4 kB / 280 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.02848, allocations: 4.031 kB / 280 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.02849, allocations: 3.984 kB / 280 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.02862, allocations: 153.7 kB / 280.2 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.02862, allocations: 0 / 280.2 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-05/0.02868, allocations: 15.98 kB / 280.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000184/0.02886, allocations: 72.94 kB / 280.2 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.02887, allocations: 3.984 kB / 280.3 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007959/0.02967, allocations: 1.284 MB / 281.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.02967, allocations: 0 / 281.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000228/0.0299, allocations: 165.7 kB / 281.7 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.602e-05/0.02993, allocations: 19.8 kB / 281.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.02995, allocations: 11.98 kB / 281.7 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.459e-05/0.03005, allocations: 20.2 kB / 281.7 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.365e-05/0.0301, allocations: 27.97 kB / 281.8 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.03011, allocations: 0 / 281.8 MB, free: 11.87 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.54e-05/0.03018, allocations: 86.77 kB / 281.9 MB, free: 11.79 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03018, allocations: 3.938 kB / 281.9 MB, free: 11.79 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002952/0.03048, allocations: 83.78 kB / 281.9 MB, free: 11.7 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 8.596e-05/0.03056, allocations: 84.41 kB / 282 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003217/0.03089, allocations: 313.2 kB / 282.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.03089, allocations: 0 / 282.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.03103, allocations: 163.4 kB / 282.5 MB, free: 11.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.03223, allocations: 56.89 kB / 282.6 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007057/0.03294, allocations: 440 kB / 283 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.65e-05/0.03299, allocations: 88.25 kB / 283.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.463e-05/0.03306, allocations: 26.28 kB / 283.1 MB, free: 10.46 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.0332, allocations: 103.3 kB / 283.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.0332, allocations: 0 / 283.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of Templates: time 0.005648/0.03885, allocations: 4.301 MB / 287.5 MB, free: 6.133 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.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.636459799017757]