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.001976/0.001976, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 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.003278/0.003278, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 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.555/1.555, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 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 0.001593/0.001593, allocations: 43.94 kB / 373.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.113, allocations: 53.33 MB / 426.8 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.00457/0.1175, allocations: 2.95 MB / 429.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.119, allocations: 0.7713 MB / 430.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.1192, allocations: 4 kB / 430.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.1193, allocations: 47.52 kB / 430.6 MB, free: 464 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002184/0.1196, allocations: 107.2 kB / 430.7 MB, free: 356 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003037/0.1199, allocations: 119.8 kB / 430.8 MB, free: 236 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2111/0.331, allocations: 411.2 kB / 431.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003008/0.3313, allocations: 89.39 kB / 431.3 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002964/0.3316, allocations: 158.1 kB / 431.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002182/0.3318, allocations: 170.8 kB / 431.6 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.302e-05/0.3319, allocations: 40.62 kB / 431.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.394e-05/0.332, allocations: 43.34 kB / 431.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.492e-05/0.332, allocations: 76 kB / 431.8 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.3322, allocations: 181.2 kB / 432 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004435/0.3326, allocations: 452.6 kB / 432.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3326, allocations: 0.9062 kB / 432.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3326, allocations: 3.875 kB / 432.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.3326, allocations: 0.7812 kB / 432.4 MB, free: 8.027 MB / 350.1 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.001255/0.3339, allocations: 0.6843 MB / 433.1 MB, free: 7.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3339, allocations: 11.41 kB / 433.1 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.195e-05/0.334, allocations: 38.5 kB / 433.2 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.3343, allocations: 300.4 kB / 433.5 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.3343, allocations: 16.25 kB / 433.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/0.3344, allocations: 28.12 kB / 433.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006928/0.3351, allocations: 322.6 kB / 433.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.3351, allocations: 3.938 kB / 433.8 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.3351, allocations: 14.17 kB / 433.8 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.3351, allocations: 5.125 kB / 433.8 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008032/0.3359, allocations: 286 kB / 434.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001805/0.3377, allocations: 1.148 MB / 435.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009248/0.3387, allocations: 245.4 kB / 435.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003645/0.339, allocations: 102.6 kB / 435.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.3391, allocations: 5.094 kB / 435.6 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004987/0.3396, allocations: 180.3 kB / 435.8 MB, free: 6.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.583e-06/0.3396, allocations: 4 kB / 435.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002543/0.3421, allocations: 0.6584 MB / 436.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.388e-05/0.3422, allocations: 110.9 kB / 436.6 MB, free: 6.305 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003487/0.3425, allocations: 277.4 kB / 436.8 MB, free: 6.199 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.3425, allocations: 34.33 kB / 436.9 MB, free: 6.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.3427, allocations: 204.4 kB / 437.1 MB, free: 6.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.973e-05/0.3427, allocations: 49.38 kB / 437.1 MB, free: 6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.3428, allocations: 45.17 kB / 437.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.387e-05/0.3429, allocations: 334.5 kB / 437.5 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003838/0.3433, allocations: 112 kB / 437.6 MB, free: 5.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004145/0.3437, allocations: 205.5 kB / 437.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007263/0.3444, allocations: 303.8 kB / 438.1 MB, free: 5.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3444, allocations: 1.25 kB / 438.1 MB, free: 5.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001332/0.3457, allocations: 483.7 kB / 438.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.244e-05/0.3458, allocations: 37.73 kB / 438.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.3458, allocations: 3.438 kB / 438.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004466/0.3462, allocations: 83.03 kB / 438.7 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000241/0.3465, allocations: 46.67 kB / 438.7 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002559/0.349, allocations: 1.993 MB / 440.7 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003681/0.3494, allocations: 63.91 kB / 440.8 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.601e-05/0.3494, allocations: 12.88 kB / 440.8 MB, free: 3.539 MB / 350.1 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.000152/0.3496, allocations: 154.1 kB / 440.9 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.973e-05/0.3496, allocations: 22.7 kB / 441 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.277e-05/0.3497, allocations: 24.02 kB / 441 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.3497, allocations: 5.469 kB / 441 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3497, allocations: 0.5625 kB / 441 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3497, allocations: 1.953 kB / 441 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003128/0.35, allocations: 330.4 kB / 441.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.35, allocations: 0 / 441.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.3501, allocations: 22.02 kB / 441.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002899/0.3504, allocations: 84.56 kB / 441.4 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.3505, allocations: 5.781 kB / 441.4 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002047/0.3525, allocations: 1.799 MB / 443.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3525, allocations: 8.375 kB / 443.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.3536, allocations: 372.8 kB / 443.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.022e-05/0.3537, allocations: 109.1 kB / 443.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.843e-05/0.3537, allocations: 6.906 kB / 443.7 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000266/0.354, allocations: 33.84 kB / 443.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.283e-05/0.3541, allocations: 18.48 kB / 443.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.3541, allocations: 8.984 kB / 443.8 MB, free: 1.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002424/0.3543, allocations: 198.9 kB / 444 MB, free: 1.164 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3543, allocations: 0 / 444 MB, free: 1.164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004324/0.3548, allocations: 84.5 kB / 444.1 MB, free: 1.145 MB / 350.1 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.000137/0.3549, allocations: 103.1 kB / 444.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.356, allocations: 432.5 kB / 444.6 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.356, allocations: 5.125 kB / 444.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004618/0.3564, allocations: 231.6 kB / 444.8 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.3568, allocations: 47.69 kB / 444.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.3578, allocations: 493.4 kB / 445.3 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.3582, allocations: 0.7589 MB / 446.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.3583, allocations: 26.95 kB / 446.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.718e-05/0.3584, allocations: 20 kB / 446.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3584, allocations: 0 / 446.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of Templates: time 0.009777/0.3681, allocations: 4.235 MB / 450.4 MB, free: 15.41 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 480] 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: 5.024559132754803]