Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.002467/0.002467, allocations: 83.67 kB / 20.96 MB, free: 3.32 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.002058/0.002058, allocations: 161.3 kB / 24.27 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.564/1.564, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 272.4 MB, free: 1.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.468e-05/3.683e-05, allocations: 2.312 kB / 272.4 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.006874/0.006911, allocations: 2.922 MB / 275.3 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002103/0.009014, allocations: 0.7401 MB / 276 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.009229, allocations: 7.938 kB / 276 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002485/0.009477, allocations: 51.52 kB / 276.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000347/0.009824, allocations: 107.1 kB / 276.2 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/0.01028, allocations: 115.8 kB / 276.3 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007401/0.01102, allocations: 430.2 kB / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002878/0.01131, allocations: 87.61 kB / 276.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004674/0.01178, allocations: 235.5 kB / 277 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000327/0.0121, allocations: 139.6 kB / 277.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.915e-05/0.0122, allocations: 40 kB / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.0123, allocations: 40 kB / 277.2 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001298/0.01243, allocations: 83.67 kB / 277.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002431/0.01267, allocations: 123.7 kB / 277.5 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007751/0.01345, allocations: 470.5 kB / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.01346, allocations: 4 kB / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.01346, allocations: 0 / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.01347, allocations: 0 / 277.9 MB, free: 12.21 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001747/0.01521, allocations: 0.7088 MB / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.01526, allocations: 8.031 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.01543, allocations: 60.69 kB / 278.7 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005546/0.01599, allocations: 248 kB / 278.9 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.734e-05/0.01603, allocations: 20.88 kB / 279 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.661e-05/0.01609, allocations: 28.31 kB / 279 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009306/0.01702, allocations: 368.4 kB / 279.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.01704, allocations: 4.172 kB / 279.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.01708, allocations: 12.38 kB / 279.4 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.0171, allocations: 11.94 kB / 279.4 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008675/0.01796, allocations: 237.9 kB / 279.6 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002795/0.02076, allocations: 1.182 MB / 280.8 MB, free: 9.172 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008807/0.02164, allocations: 203.1 kB / 281 MB, free: 8.961 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003455/0.02198, allocations: 91.64 kB / 281.1 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.163e-05/0.02202, allocations: 0 / 281.1 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005787/0.02259, allocations: 235.4 kB / 281.3 MB, free: 8.598 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.363e-06/0.0226, allocations: 0 / 281.3 MB, free: 8.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.002429/0.02502, allocations: 455.7 kB / 281.7 MB, free: 8.145 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.02515, allocations: 110.8 kB / 281.9 MB, free: 8.012 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000576/0.02572, allocations: 372.2 kB / 282.2 MB, free: 7.633 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/0.02576, allocations: 25.7 kB / 282.2 MB, free: 7.602 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002814/0.02604, allocations: 270.7 kB / 282.5 MB, free: 7.332 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.41e-05/0.02612, allocations: 47.69 kB / 282.6 MB, free: 7.285 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.02628, allocations: 67.55 kB / 282.6 MB, free: 7.207 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003435/0.02663, allocations: 0.5118 MB / 283.1 MB, free: 6.684 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003736/0.027, allocations: 118.1 kB / 283.2 MB, free: 6.562 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005788/0.02758, allocations: 305.6 kB / 283.5 MB, free: 6.188 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008393/0.02842, allocations: 320.1 kB / 283.9 MB, free: 5.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.02842, allocations: 0 / 283.9 MB, free: 5.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001419/0.02984, allocations: 452.3 kB / 284.3 MB, free: 5.355 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.319e-05/0.0299, allocations: 37.69 kB / 284.3 MB, free: 5.312 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.02991, allocations: 0 / 284.3 MB, free: 5.312 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006849/0.0306, allocations: 111.7 kB / 284.4 MB, free: 5.199 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00026/0.03086, allocations: 44.12 kB / 284.5 MB, free: 5.156 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003935/0.03479, allocations: 2.371 MB / 286.9 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005091/0.0353, allocations: 47.8 kB / 286.9 MB, free: 2.613 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.03534, allocations: 12 kB / 286.9 MB, free: 2.602 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 0.0003936/0.03574, allocations: 196.5 kB / 287.1 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.195e-05/0.03582, allocations: 35.8 kB / 287.1 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.511e-05/0.03589, allocations: 21.77 kB / 287.2 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.0359, allocations: 4.031 kB / 287.2 MB, free: 2.336 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.0359, allocations: 4 kB / 287.2 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.0359, allocations: 0 / 287.2 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006481/0.03655, allocations: 276.5 kB / 287.4 MB, free: 2.027 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.03656, allocations: 0 / 287.4 MB, free: 2.027 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/0.03669, allocations: 20.05 kB / 287.5 MB, free: 2.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006285/0.03732, allocations: 115.5 kB / 287.6 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.03734, allocations: 0 / 287.6 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003255/0.04059, allocations: 2.103 MB / 289.7 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.04059, allocations: 0 / 289.7 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/0.04176, allocations: 319.8 kB / 290 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.716e-05/0.04185, allocations: 27.84 kB / 290 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.126e-05/0.04191, allocations: 8.125 kB / 290 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.04219, allocations: 23.98 kB / 290.1 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.04229, allocations: 23.95 kB / 290.1 MB, free: 15.24 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/0.04232, allocations: 8 kB / 290.1 MB, free: 15.23 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003644/0.04268, allocations: 245.1 kB / 290.3 MB, free: 15 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.04268, allocations: 0 / 290.3 MB, free: 15 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006385/0.04332, allocations: 83.84 kB / 290.4 MB, free: 14.91 MB / 282.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 0.0001889/0.04351, allocations: 99.25 kB / 290.5 MB, free: 14.81 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001338/0.04485, allocations: 490 kB / 291 MB, free: 14.29 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.04486, allocations: 8.188 kB / 291 MB, free: 14.29 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006307/0.04549, allocations: 289.2 kB / 291.3 MB, free: 13.98 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004973/0.04598, allocations: 54.98 kB / 291.3 MB, free: 13.93 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.04755, allocations: 482.8 kB / 291.8 MB, free: 13.43 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.04777, allocations: 146.9 kB / 291.9 MB, free: 13.27 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001664/0.04794, allocations: 22.3 kB / 292 MB, free: 13.25 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.758e-05/0.04803, allocations: 24.48 kB / 292 MB, free: 13.22 MB / 282.7 MB Notification: Performance of SimCode: time 1.052e-06/0.04803, allocations: 0 / 292 MB, free: 13.22 MB / 282.7 MB Notification: Performance of Templates: time 0.01136/0.0594, allocations: 4.174 MB / 296.2 MB, free: 9.105 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.716973550035618]