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.001833/0.001833, allocations: 108 kB / 20.43 MB, free: 1.473 MB / 14.72 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.002139/0.002139, allocations: 185.7 kB / 23.71 MB, free: 4.711 MB / 14.72 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 1.468/1.468, allocations: 225.6 MB / 252.5 MB, free: 13.06 MB / 206.1 MB
"
[Timeout remaining time 178]
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 0.001722/0.001722, allocations: 43.92 kB / 371 MB, free: 9.352 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2629, allocations: 52.19 MB / 423.1 MB, free: 14.68 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.005078/0.268, allocations: 2.967 MB / 426.1 MB, free: 11.7 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001546/0.2696, allocations: 0.7401 MB / 426.9 MB, free: 10.95 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002697/0.2698, allocations: 7.938 kB / 426.9 MB, free: 10.95 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002616/0.2701, allocations: 47.52 kB / 426.9 MB, free: 10.9 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003392/0.2704, allocations: 103.2 kB / 427 MB, free: 10.8 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003959/0.2708, allocations: 115.8 kB / 427.1 MB, free: 10.68 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005038/0.2713, allocations: 418.4 kB / 427.5 MB, free: 10.27 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002285/0.2716, allocations: 91.67 kB / 427.6 MB, free: 10.18 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002177/0.2718, allocations: 163.4 kB / 427.8 MB, free: 10.02 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002173/0.272, allocations: 167.3 kB / 427.9 MB, free: 9.855 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 7.832e-05/0.2721, allocations: 40 kB / 428 MB, free: 9.816 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 7.001e-05/0.2721, allocations: 40 kB / 428 MB, free: 9.777 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.969e-05/0.2722, allocations: 83.69 kB / 428.1 MB, free: 9.695 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002174/0.2724, allocations: 175.2 kB / 428.3 MB, free: 9.523 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005949/0.273, allocations: 455.5 kB / 428.7 MB, free: 9.082 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.273, allocations: 0 / 428.7 MB, free: 9.082 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.383e-06/0.273, allocations: 4 kB / 428.7 MB, free: 9.078 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.584e-06/0.2731, allocations: 0 / 428.7 MB, free: 9.078 MB / 334.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.001549/0.2746, allocations: 0.6053 MB / 429.3 MB, free: 8.434 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.2746, allocations: 12.03 kB / 429.3 MB, free: 8.422 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.932e-05/0.2747, allocations: 32.75 kB / 429.4 MB, free: 8.391 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005513/0.2753, allocations: 245.9 kB / 429.6 MB, free: 8.125 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.033e-05/0.2753, allocations: 24.81 kB / 429.6 MB, free: 8.102 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.567e-05/0.2754, allocations: 24.38 kB / 429.7 MB, free: 8.078 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008076/0.2762, allocations: 331 kB / 430 MB, free: 7.742 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.2762, allocations: 0 / 430 MB, free: 7.742 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.248e-05/0.2762, allocations: 12 kB / 430 MB, free: 7.73 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.2762, allocations: 4 kB / 430 MB, free: 7.727 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008619/0.2771, allocations: 285.8 kB / 430.3 MB, free: 7.449 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002227/0.2793, allocations: 1.116 MB / 431.4 MB, free: 6.258 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0009172/0.2802, allocations: 238.5 kB / 431.6 MB, free: 6.016 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003521/0.2806, allocations: 104.8 kB / 431.7 MB, free: 5.91 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.2806, allocations: 0 / 431.7 MB, free: 5.91 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005178/0.2811, allocations: 184.6 kB / 431.9 MB, free: 5.711 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=13): time 1.302e-06/0.2811, allocations: 0 / 431.9 MB, free: 5.711 MB / 334.1 MB
Notification: Performance of matching and sorting (n=13): time 0.002516/0.2837, allocations: 0.5876 MB / 432.5 MB, free: 5.113 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.2838, allocations: 110.8 kB / 432.6 MB, free: 4.98 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004089/0.2842, allocations: 281.8 kB / 432.9 MB, free: 4.695 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.631e-05/0.2842, allocations: 33.7 kB / 432.9 MB, free: 4.656 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001938/0.2844, allocations: 196 kB / 433.1 MB, free: 4.461 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.256e-05/0.2845, allocations: 51.61 kB / 433.2 MB, free: 4.41 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.876e-05/0.2846, allocations: 53.89 kB / 433.2 MB, free: 4.348 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.000181/0.2847, allocations: 334.8 kB / 433.5 MB, free: 4.012 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003716/0.2851, allocations: 104.4 kB / 433.6 MB, free: 3.91 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004576/0.2856, allocations: 206 kB / 433.8 MB, free: 3.668 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0008252/0.2864, allocations: 307.7 kB / 434.1 MB, free: 3.324 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.2864, allocations: 4 kB / 434.1 MB, free: 3.32 MB / 334.1 MB
Notification: Performance of matching and sorting (n=28) (initialization): time 0.001387/0.2878, allocations: 467.7 kB / 434.6 MB, free: 2.848 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.622e-05/0.2878, allocations: 40.58 kB / 434.6 MB, free: 2.805 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.2878, allocations: 4 kB / 434.6 MB, free: 2.801 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0004156/0.2883, allocations: 84.73 kB / 434.7 MB, free: 2.715 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002302/0.2885, allocations: 47.97 kB / 434.8 MB, free: 2.668 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003007/0.2915, allocations: 1.891 MB / 436.7 MB, free: 0.6641 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003827/0.2919, allocations: 55.8 kB / 436.7 MB, free: 0.6094 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.2919, allocations: 12.06 kB / 436.7 MB, free: 0.5977 MB / 334.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.0002177/0.2921, allocations: 157.9 kB / 436.9 MB, free: 444 kB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.964e-05/0.2922, allocations: 19.86 kB / 436.9 MB, free: 424 kB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.27e-05/0.2922, allocations: 37.73 kB / 436.9 MB, free: 384 kB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2922, allocations: 0 / 436.9 MB, free: 384 kB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.2922, allocations: 4 kB / 436.9 MB, free: 380 kB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2922, allocations: 0 / 436.9 MB, free: 380 kB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003375/0.2926, allocations: 292.5 kB / 437.2 MB, free: 44 kB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.2926, allocations: 8 kB / 437.2 MB, free: 36 kB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.2927, allocations: 15.98 kB / 437.3 MB, free: 20 kB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0003099/0.293, allocations: 84.73 kB / 437.3 MB, free: 15.93 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.293, allocations: 8 kB / 437.3 MB, free: 15.93 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00247/0.2955, allocations: 1.709 MB / 439.1 MB, free: 14.1 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2955, allocations: 0 / 439.1 MB, free: 14.1 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.2966, allocations: 376.7 kB / 439.4 MB, free: 13.71 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.125e-05/0.2967, allocations: 27.86 kB / 439.4 MB, free: 13.68 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.538e-05/0.2967, allocations: 0 / 439.4 MB, free: 13.68 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002601/0.297, allocations: 35.95 kB / 439.5 MB, free: 13.65 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.004e-05/0.297, allocations: 19.97 kB / 439.5 MB, free: 13.63 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.2971, allocations: 0 / 439.5 MB, free: 13.63 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002171/0.2973, allocations: 209.1 kB / 439.7 MB, free: 13.42 MB / 350.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.2973, allocations: 4 kB / 439.7 MB, free: 13.42 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003839/0.2977, allocations: 79.84 kB / 439.8 MB, free: 13.34 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.0001408/0.2978, allocations: 104.9 kB / 439.9 MB, free: 13.23 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.001059/0.2989, allocations: 422.9 kB / 440.3 MB, free: 12.79 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2989, allocations: 0 / 440.3 MB, free: 12.79 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005103/0.2994, allocations: 235.1 kB / 440.5 MB, free: 12.55 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.2997, allocations: 48.34 kB / 440.6 MB, free: 12.5 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.3007, allocations: 0.4885 MB / 441.1 MB, free: 11.99 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/0.3011, allocations: 0.7558 MB / 441.8 MB, free: 11.21 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001078/0.3012, allocations: 26.28 kB / 441.9 MB, free: 11.18 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.834e-05/0.3013, allocations: 23.38 kB / 441.9 MB, free: 11.16 MB / 350.1 MB
Notification: Performance of SimCode: time 3.41e-07/0.3013, allocations: 0 / 441.9 MB, free: 11.16 MB / 350.1 MB
Notification: Performance of Templates: time 0.009026/0.3103, allocations: 4.348 MB / 446.2 MB, free: 6.852 MB / 350.1 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=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 480]
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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.683617173694074]