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) 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 4.0.0+maint.om/package.mo", uses=false) 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=2000,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=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001869/0.001869, allocations: 109.8 kB / 17.06 MB, free: 6.023 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.001109/0.001109, allocations: 191 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009884/0.0009884, allocations: 47.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.355, allocations: 49.43 MB / 400.8 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004466/0.3595, allocations: 2.939 MB / 403.7 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.3611, allocations: 0.7207 MB / 404.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001772/0.3613, allocations: 7.938 kB / 404.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002131/0.3615, allocations: 51.5 kB / 404.5 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000218/0.3617, allocations: 107.2 kB / 404.6 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003308/0.3621, allocations: 115.8 kB / 404.7 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004541/0.3625, allocations: 418.4 kB / 405.1 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002845/0.3628, allocations: 127.3 kB / 405.2 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002224/0.3631, allocations: 159.4 kB / 405.4 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003021/0.3634, allocations: 171.2 kB / 405.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.403e-05/0.3634, allocations: 40 kB / 405.6 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.141e-05/0.3635, allocations: 40 kB / 405.6 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.3637, allocations: 79.75 kB / 405.7 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002235/0.3639, allocations: 171.2 kB / 405.9 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006126/0.3645, allocations: 455.6 kB / 406.3 MB, free: 3.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.078e-05/0.3645, allocations: 0 / 406.3 MB, free: 3.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.3645, allocations: 0 / 406.3 MB, free: 3.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.3646, allocations: 4 kB / 406.3 MB, free: 3.285 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001587/0.3661, allocations: 0.6692 MB / 407 MB, free: 2.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.342e-05/0.3662, allocations: 15.89 kB / 407 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.3663, allocations: 40.47 kB / 407 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005219/0.3669, allocations: 291.7 kB / 407.3 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.396e-05/0.3669, allocations: 20.94 kB / 407.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.014e-05/0.367, allocations: 24.38 kB / 407.4 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007598/0.3677, allocations: 335.9 kB / 407.7 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.3678, allocations: 0 / 407.7 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.365e-05/0.3678, allocations: 8 kB / 407.7 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.3678, allocations: 11.94 kB / 407.7 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007554/0.3686, allocations: 286.1 kB / 408 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00191/0.3705, allocations: 1.143 MB / 409.1 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007717/0.3713, allocations: 258.5 kB / 409.4 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000329/0.3717, allocations: 108.8 kB / 409.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.151e-05/0.3717, allocations: 0 / 409.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004251/0.3721, allocations: 184.7 kB / 409.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.3721, allocations: 0 / 409.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002176/0.3743, allocations: 0.6628 MB / 410.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.718e-05/0.3744, allocations: 106.8 kB / 410.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/0.3747, allocations: 278.7 kB / 410.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.396e-05/0.3747, allocations: 33.7 kB / 410.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.3749, allocations: 203.5 kB / 410.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.145e-05/0.3749, allocations: 39.39 kB / 411 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.474e-05/0.375, allocations: 57.94 kB / 411 MB, free: 14.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.3752, allocations: 330.8 kB / 411.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003321/0.3755, allocations: 108.4 kB / 411.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003921/0.3759, allocations: 201.6 kB / 411.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006693/0.3766, allocations: 315.6 kB / 412 MB, free: 13.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.3766, allocations: 4 kB / 412 MB, free: 13.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001174/0.3778, allocations: 465.9 kB / 412.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.105e-05/0.3779, allocations: 41.62 kB / 412.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.3779, allocations: 8.062 kB / 412.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004107/0.3783, allocations: 80.81 kB / 412.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.3785, allocations: 44.17 kB / 412.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002814/0.3813, allocations: 2.005 MB / 414.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003103/0.3816, allocations: 55.77 kB / 414.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.396e-05/0.3817, allocations: 12 kB / 414.7 MB, free: 10.38 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.0001569/0.3818, allocations: 161 kB / 414.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.694e-05/0.3819, allocations: 23.72 kB / 414.9 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.201e-05/0.382, allocations: 29.83 kB / 414.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.382, allocations: 0 / 414.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.382, allocations: 0 / 414.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.382, allocations: 0 / 414.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002775/0.3823, allocations: 333.3 kB / 415.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.3823, allocations: 0 / 415.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001295/0.3824, allocations: 23.98 kB / 415.2 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002573/0.3827, allocations: 76.8 kB / 415.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.3827, allocations: 4 kB / 415.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00209/0.3848, allocations: 1.82 MB / 417.1 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3848, allocations: 0 / 417.1 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009806/0.3858, allocations: 369.4 kB / 417.5 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.35e-05/0.3859, allocations: 100.8 kB / 417.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.3859, allocations: 8 kB / 417.6 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.3862, allocations: 27.95 kB / 417.6 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.001e-05/0.3862, allocations: 19.97 kB / 417.6 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.3863, allocations: 8 kB / 417.7 MB, free: 7.145 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002019/0.3865, allocations: 205.9 kB / 417.9 MB, free: 6.945 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3865, allocations: 0 / 417.9 MB, free: 6.945 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003695/0.3869, allocations: 83.84 kB / 417.9 MB, free: 6.863 MB / 334.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.0001482/0.387, allocations: 99.19 kB / 418 MB, free: 6.754 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009514/0.388, allocations: 441.8 kB / 418.5 MB, free: 6.297 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.388, allocations: 0 / 418.5 MB, free: 6.297 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004535/0.3885, allocations: 238.2 kB / 418.7 MB, free: 6.055 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003448/0.3888, allocations: 52.59 kB / 418.8 MB, free: 6 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.3899, allocations: 489.3 kB / 419.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.3903, allocations: 0.7558 MB / 420 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.398e-05/0.3904, allocations: 26.28 kB / 420 MB, free: 4.691 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.629e-05/0.3904, allocations: 23.44 kB / 420 MB, free: 4.672 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3904, allocations: 0 / 420 MB, free: 4.672 MB / 334.1 MB Notification: Performance of Templates: time 0.008008/0.3985, allocations: 4.177 MB / 424.2 MB, free: 0.5312 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (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) 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) Reference file matches