Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001172, allocations: 101.6 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008443/0.0008444, allocations: 35.94 kB / 350 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3522, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003108/0.3554, allocations: 2.825 MB / 402.3 MB, free: 30.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008076/0.3562, allocations: 0.6347 MB / 402.9 MB, free: 29.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.3563, allocations: 7.938 kB / 402.9 MB, free: 29.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.3565, allocations: 39.7 kB / 403 MB, free: 29.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.3566, allocations: 80.92 kB / 403.1 MB, free: 29.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002152/0.3569, allocations: 75.94 kB / 403.1 MB, free: 29.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.3571, allocations: 358.4 kB / 403.5 MB, free: 29.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.3573, allocations: 111.5 kB / 403.6 MB, free: 29.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.3574, allocations: 135.4 kB / 403.7 MB, free: 29.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.3576, allocations: 159.3 kB / 403.9 MB, free: 28.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.337e-05/0.3576, allocations: 20 kB / 403.9 MB, free: 28.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.744e-05/0.3577, allocations: 24 kB / 403.9 MB, free: 28.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.704e-05/0.3578, allocations: 63.69 kB / 404 MB, free: 28.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.3579, allocations: 151.2 kB / 404.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002577/0.3581, allocations: 360.3 kB / 404.5 MB, free: 28.33 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.3582, allocations: 0 / 404.5 MB, free: 28.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.3582, allocations: 0 / 404.5 MB, free: 28.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.3582, allocations: 4 kB / 404.5 MB, free: 28.33 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001191/0.3594, allocations: 0.6458 MB / 405.1 MB, free: 27.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.3594, allocations: 12.03 kB / 405.1 MB, free: 27.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.94e-05/0.3595, allocations: 40.48 kB / 405.2 MB, free: 27.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.3597, allocations: 276.6 kB / 405.5 MB, free: 27.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.3598, allocations: 20.92 kB / 405.5 MB, free: 27.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.309e-05/0.3598, allocations: 20.38 kB / 405.5 MB, free: 27.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005653/0.3604, allocations: 307.7 kB / 405.8 MB, free: 26.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.3604, allocations: 0 / 405.8 MB, free: 26.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.422e-05/0.3604, allocations: 8 kB / 405.8 MB, free: 26.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.3605, allocations: 8 kB / 405.8 MB, free: 26.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007018/0.3612, allocations: 249.5 kB / 406.1 MB, free: 26.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.3625, allocations: 1.105 MB / 407.2 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007012/0.3632, allocations: 210.5 kB / 407.4 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002751/0.3635, allocations: 88.83 kB / 407.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.3636, allocations: 0 / 407.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004556/0.364, allocations: 169.8 kB / 407.6 MB, free: 24.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.372e-06/0.364, allocations: 4 kB / 407.6 MB, free: 24.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.001866/0.3659, allocations: 0.5067 MB / 408.1 MB, free: 24.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.366, allocations: 106.8 kB / 408.2 MB, free: 24.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002173/0.3662, allocations: 290.5 kB / 408.5 MB, free: 24.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.3662, allocations: 25.7 kB / 408.5 MB, free: 23.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.137e-05/0.3663, allocations: 191.6 kB / 408.7 MB, free: 23.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.3663, allocations: 39.45 kB / 408.8 MB, free: 23.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.787e-05/0.3664, allocations: 53.84 kB / 408.8 MB, free: 23.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.005e-05/0.3665, allocations: 338.8 kB / 409.2 MB, free: 23.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003215/0.3668, allocations: 96.09 kB / 409.2 MB, free: 23.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003238/0.3671, allocations: 195.8 kB / 409.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005737/0.3677, allocations: 313.4 kB / 409.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.3677, allocations: 7.938 kB / 409.8 MB, free: 22.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001031/0.3688, allocations: 423.7 kB / 410.2 MB, free: 22.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.3688, allocations: 29.7 kB / 410.2 MB, free: 22.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3688, allocations: 4 kB / 410.2 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003253/0.3691, allocations: 80.77 kB / 410.3 MB, free: 22.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.3694, allocations: 47.97 kB / 410.3 MB, free: 22.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/0.3711, allocations: 1.593 MB / 411.9 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003217/0.3715, allocations: 55.72 kB / 412 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.3715, allocations: 16 kB / 412 MB, free: 20.26 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001147/0.3716, allocations: 145.8 kB / 412.1 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.133e-05/0.3717, allocations: 27.64 kB / 412.2 MB, free: 20.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.977e-05/0.3717, allocations: 25.72 kB / 412.2 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.3717, allocations: 0 / 412.2 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.3717, allocations: 4 kB / 412.2 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3717, allocations: 3.984 kB / 412.2 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001896/0.3719, allocations: 305.3 kB / 412.5 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.3719, allocations: 0 / 412.5 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.3721, allocations: 19.97 kB / 412.5 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002336/0.3723, allocations: 68.8 kB / 412.6 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.3723, allocations: 4 kB / 412.6 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001559/0.3739, allocations: 1.57 MB / 414.1 MB, free: 17.9 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3739, allocations: 4.031 kB / 414.2 MB, free: 17.9 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.3752, allocations: 0.976 MB / 415.1 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.647e-05/0.3753, allocations: 116.7 kB / 415.2 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.292e-05/0.3753, allocations: 8 kB / 415.2 MB, free: 16.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002267/0.3755, allocations: 27.95 kB / 415.3 MB, free: 16.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.323e-05/0.3756, allocations: 23.97 kB / 415.3 MB, free: 16.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.3757, allocations: 8 kB / 415.3 MB, free: 16.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000146/0.3758, allocations: 198 kB / 415.5 MB, free: 16.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3758, allocations: 0 / 415.5 MB, free: 16.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004104/0.3762, allocations: 79.78 kB / 415.6 MB, free: 16.39 MB / 298.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 (7): * Single equations (assignments): 4 * 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.0001038/0.3763, allocations: 103.2 kB / 415.7 MB, free: 16.28 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008249/0.3772, allocations: 413.6 kB / 416.1 MB, free: 15.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3772, allocations: 4.75 kB / 416.1 MB, free: 15.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003712/0.3776, allocations: 230.6 kB / 416.3 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.3779, allocations: 37.95 kB / 416.4 MB, free: 15.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009156/0.3788, allocations: 0.6814 MB / 417 MB, free: 14.85 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001455/0.3789, allocations: 0.7521 MB / 417.8 MB, free: 14.07 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.3791, allocations: 26.28 kB / 417.8 MB, free: 14.04 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.903e-05/0.3791, allocations: 19.44 kB / 417.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.3791, allocations: 0 / 417.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of Templates: time 0.006123/0.3852, allocations: 3.962 MB / 421.8 MB, free: 10.09 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches