Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 113.2 kB / 17.73 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001545/0.001546, allocations: 188.2 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.766/1.766, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 59.91 kB / 328.6 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1077, allocations: 46.61 MB / 375.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.004651/0.1124, allocations: 2.707 MB / 377.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.114, allocations: 0.7173 MB / 378.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000297/0.1143, allocations: 4 kB / 378.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002295/0.1146, allocations: 43.56 kB / 378.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003246/0.1149, allocations: 95.25 kB / 378.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003689/0.1153, allocations: 95.81 kB / 378.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005415/0.1159, allocations: 358.5 kB / 379.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.1161, allocations: 84.69 kB / 379.3 MB, free: 448 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002361/0.1164, allocations: 139.4 kB / 379.4 MB, free: 308 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003055/0.1167, allocations: 151.3 kB / 379.5 MB, free: 156 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.018e-05/0.1168, allocations: 31.94 kB / 379.6 MB, free: 124 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.937e-05/0.1168, allocations: 28 kB / 379.6 MB, free: 96 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.101e-05/0.1169, allocations: 59.83 kB / 379.7 MB, free: 36 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2229/0.3398, allocations: 143.4 kB / 379.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005081/0.3404, allocations: 327 kB / 380.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3404, allocations: 0 / 380.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3404, allocations: 1.375 kB / 380.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.3404, allocations: 0 / 380.1 MB, free: 10.11 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001309/0.3418, allocations: 0.6343 MB / 380.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.456e-05/0.3418, allocations: 10.8 kB / 380.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.544e-05/0.3419, allocations: 31.69 kB / 380.8 MB, free: 9.633 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/0.3423, allocations: 275.4 kB / 381.1 MB, free: 9.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.3423, allocations: 18.11 kB / 381.1 MB, free: 9.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.083e-05/0.3424, allocations: 19.25 kB / 381.1 MB, free: 9.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006271/0.343, allocations: 247.4 kB / 381.3 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.343, allocations: 8.406 kB / 381.4 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3e-05/0.3431, allocations: 9.328 kB / 381.4 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.3431, allocations: 5.406 kB / 381.4 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007793/0.3439, allocations: 256.4 kB / 381.6 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001546/0.3454, allocations: 0.8511 MB / 382.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008285/0.3463, allocations: 228.9 kB / 382.7 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003423/0.3466, allocations: 101.1 kB / 382.8 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.3467, allocations: 2.578 kB / 382.8 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004772/0.3472, allocations: 175.9 kB / 383 MB, free: 8.848 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.3472, allocations: 0.5 kB / 383 MB, free: 8.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.002082/0.3493, allocations: 0.5934 MB / 383.6 MB, free: 8.688 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.3493, allocations: 106 kB / 383.7 MB, free: 8.562 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/0.3496, allocations: 257.5 kB / 383.9 MB, free: 8.457 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.3497, allocations: 31.33 kB / 383.9 MB, free: 8.426 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.721e-05/0.3498, allocations: 168.2 kB / 384.1 MB, free: 8.309 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.989e-05/0.3498, allocations: 46.23 kB / 384.2 MB, free: 8.281 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.496e-05/0.3499, allocations: 44.22 kB / 384.2 MB, free: 8.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.684e-05/0.35, allocations: 334 kB / 384.5 MB, free: 7.949 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003149/0.3503, allocations: 99.59 kB / 384.6 MB, free: 7.938 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000346/0.3507, allocations: 163.2 kB / 384.8 MB, free: 7.859 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005947/0.3513, allocations: 263.9 kB / 385 MB, free: 7.762 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.3513, allocations: 1 kB / 385 MB, free: 7.762 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001078/0.3524, allocations: 409.5 kB / 385.4 MB, free: 7.672 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/0.3524, allocations: 34.3 kB / 385.5 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.3524, allocations: 1.156 kB / 385.5 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005118/0.3529, allocations: 110.8 kB / 385.6 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001797/0.3531, allocations: 39.55 kB / 385.6 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/0.3549, allocations: 1.887 MB / 387.5 MB, free: 6.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003192/0.3553, allocations: 47.33 kB / 387.6 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.446e-05/0.3553, allocations: 10.59 kB / 387.6 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003336/0.3557, allocations: 175.9 kB / 387.7 MB, free: 6.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003034/0.356, allocations: 147.4 kB / 387.9 MB, free: 5.934 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004967/0.3565, allocations: 234.5 kB / 388.1 MB, free: 5.793 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.382e-06/0.3565, allocations: 0 / 388.1 MB, free: 5.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0007545/0.3572, allocations: 332 kB / 388.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.3573, allocations: 37.19 kB / 388.5 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3573, allocations: 1.188 kB / 388.5 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001171/0.3574, allocations: 46.56 kB / 388.5 MB, free: 5.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.3576, allocations: 37.11 kB / 388.6 MB, free: 5.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.3587, allocations: 1.727 MB / 390.3 MB, free: 3.945 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002936/0.359, allocations: 39.72 kB / 390.3 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/0.359, allocations: 6.594 kB / 390.3 MB, free: 3.938 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (18): * Single equations (assignments): 16 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.3591, allocations: 204.5 kB / 390.5 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.11e-05/0.3592, allocations: 21.67 kB / 390.5 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.634e-05/0.3592, allocations: 30.08 kB / 390.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.3592, allocations: 5.562 kB / 390.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3592, allocations: 2.188 kB / 390.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3592, allocations: 1.5 kB / 390.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002821/0.3595, allocations: 293.5 kB / 390.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3595, allocations: 3.125 kB / 390.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.3597, allocations: 21.75 kB / 390.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002228/0.3599, allocations: 70.08 kB / 391 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.3599, allocations: 0.7031 kB / 391 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001624/0.3616, allocations: 1.724 MB / 392.7 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.3616, allocations: 0 / 392.7 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009086/0.3625, allocations: 319.4 kB / 393 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.543e-05/0.3626, allocations: 97.22 kB / 393.1 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.644e-05/0.3626, allocations: 5.547 kB / 393.1 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002319/0.3629, allocations: 30.58 kB / 393.1 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.363, allocations: 20.05 kB / 393.2 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.363, allocations: 11.59 kB / 393.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001844/0.3632, allocations: 185.7 kB / 393.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3632, allocations: 0 / 393.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005931/0.3638, allocations: 128.4 kB / 393.5 MB, free: 1.527 MB / 318.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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001274/0.3639, allocations: 108.5 kB / 393.6 MB, free: 1.434 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00139/0.3653, allocations: 0.6831 MB / 394.3 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3653, allocations: 1.906 kB / 394.3 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000431/0.3658, allocations: 234.8 kB / 394.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.3661, allocations: 45.08 kB / 394.5 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009526/0.3671, allocations: 460 kB / 395 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.3673, allocations: 0.749 MB / 395.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.3675, allocations: 25.2 kB / 395.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.656e-05/0.3675, allocations: 17.97 kB / 395.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3675, allocations: 0 / 395.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of Templates: time 0.01215/0.3797, allocations: 4.319 MB / 400.1 MB, free: 15.22 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches