Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 183.7 kB / 16.71 MB, free: 4.973 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 225.7 MB / 243.2 MB, free: 8.488 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007538/0.0007538, allocations: 90.02 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002616/0.0002615, allocations: 12 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2012, allocations: 50.41 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.002363/0.2036, allocations: 2.51 MB / 407.1 MB, free: 28.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008657/0.2045, allocations: 0.7677 MB / 407.9 MB, free: 28.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.2046, allocations: 5.188 kB / 407.9 MB, free: 28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.2047, allocations: 35.69 kB / 407.9 MB, free: 27.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001428/0.2049, allocations: 89.14 kB / 408 MB, free: 27.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.2051, allocations: 99.86 kB / 408.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002503/0.2054, allocations: 394.9 kB / 408.5 MB, free: 27.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.2056, allocations: 108 kB / 408.6 MB, free: 27.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.2057, allocations: 131.4 kB / 408.7 MB, free: 27.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.2058, allocations: 143.3 kB / 408.8 MB, free: 27.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.568e-05/0.2059, allocations: 20 kB / 408.9 MB, free: 27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.029e-05/0.2059, allocations: 16 kB / 408.9 MB, free: 26.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.811e-05/0.206, allocations: 59.69 kB / 408.9 MB, free: 26.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.2061, allocations: 176.8 kB / 409.1 MB, free: 26.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002979/0.2064, allocations: 423.9 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.2064, allocations: 4 kB / 409.5 MB, free: 26.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2064, allocations: 0 / 409.5 MB, free: 26.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.2065, allocations: 0 / 409.5 MB, free: 26.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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009625/0.2074, allocations: 0.6342 MB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.2075, allocations: 16.03 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.239e-05/0.2075, allocations: 32.56 kB / 410.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002593/0.2078, allocations: 303.5 kB / 410.5 MB, free: 25.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.2078, allocations: 12.94 kB / 410.5 MB, free: 25.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.517e-05/0.2079, allocations: 32.31 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000618/0.2085, allocations: 339.9 kB / 410.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.2085, allocations: 0 / 410.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.735e-05/0.2085, allocations: 12 kB / 410.9 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.2086, allocations: 8 kB / 410.9 MB, free: 24.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006979/0.2093, allocations: 314.1 kB / 411.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.2108, allocations: 1.178 MB / 412.4 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00073/0.2115, allocations: 282.5 kB / 412.7 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002935/0.2118, allocations: 124.8 kB / 412.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.2118, allocations: 0 / 412.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004301/0.2123, allocations: 205.8 kB / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.213e-06/0.2123, allocations: 0 / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001965/0.2143, allocations: 0.7332 MB / 413.7 MB, free: 21.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.2143, allocations: 110.8 kB / 413.8 MB, free: 21.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002177/0.2146, allocations: 282.6 kB / 414.1 MB, free: 21.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.2146, allocations: 33.7 kB / 414.1 MB, free: 21.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.537e-05/0.2147, allocations: 199.7 kB / 414.3 MB, free: 21.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.844e-05/0.2147, allocations: 47.3 kB / 414.4 MB, free: 21.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.244e-05/0.2147, allocations: 8 kB / 414.4 MB, free: 21.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.848e-05/0.2148, allocations: 330.8 kB / 414.7 MB, free: 20.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003095/0.2151, allocations: 120.4 kB / 414.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003247/0.2154, allocations: 208.9 kB / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005889/0.216, allocations: 339.7 kB / 415.4 MB, free: 20.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2161, allocations: 4 kB / 415.4 MB, free: 20.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001029/0.2171, allocations: 0.4995 MB / 415.9 MB, free: 19.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/0.2171, allocations: 45.7 kB / 415.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.2171, allocations: 0 / 415.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003511/0.2175, allocations: 84.8 kB / 416 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.2177, allocations: 59.89 kB / 416.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001908/0.2196, allocations: 1.822 MB / 417.9 MB, free: 17.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002915/0.2199, allocations: 67.7 kB / 417.9 MB, free: 17.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/0.22, allocations: 12 kB / 418 MB, free: 17.36 MB / 298.7 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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.000125/0.2201, allocations: 157.7 kB / 418.1 MB, free: 17.2 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.831e-05/0.2201, allocations: 23.72 kB / 418.1 MB, free: 17.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.016e-05/0.2202, allocations: 25.83 kB / 418.2 MB, free: 17.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2202, allocations: 4.219 kB / 418.2 MB, free: 17.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.237e-06/0.2202, allocations: 0 / 418.2 MB, free: 17.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.2202, allocations: 3.938 kB / 418.2 MB, free: 17.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002264/0.2204, allocations: 341.3 kB / 418.5 MB, free: 16.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2204, allocations: 4 kB / 418.5 MB, free: 16.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001268/0.2206, allocations: 27.97 kB / 418.5 MB, free: 16.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002334/0.2208, allocations: 84.81 kB / 418.6 MB, free: 16.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.2208, allocations: 3.984 kB / 418.6 MB, free: 16.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001591/0.2224, allocations: 1.706 MB / 420.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2224, allocations: 0 / 420.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009066/0.2234, allocations: 401.5 kB / 420.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.925e-05/0.2234, allocations: 112.7 kB / 420.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.2235, allocations: 4 kB / 420.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.2237, allocations: 40.14 kB / 420.9 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.962e-05/0.2238, allocations: 27.97 kB / 420.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.2238, allocations: 4 kB / 420.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000152/0.224, allocations: 202 kB / 421.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.224, allocations: 0 / 421.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003131/0.2243, allocations: 75.84 kB / 421.2 MB, free: 13.91 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 (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.0001353/0.2244, allocations: 115.2 kB / 421.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008941/0.2253, allocations: 454.6 kB / 421.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2253, allocations: 4 kB / 421.7 MB, free: 13.31 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003826/0.2257, allocations: 251.1 kB / 422 MB, free: 13.05 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.226, allocations: 58.02 kB / 422 MB, free: 13 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008543/0.2269, allocations: 0.6076 MB / 422.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001735/0.2271, allocations: 0.7521 MB / 423.4 MB, free: 11.58 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.2272, allocations: 26.28 kB / 423.4 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.204e-05/0.2273, allocations: 19.44 kB / 423.4 MB, free: 11.54 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2273, allocations: 0 / 423.4 MB, free: 11.54 MB / 298.7 MB Notification: Performance of Templates: time 0.006309/0.2336, allocations: 3.778 MB / 427.2 MB, free: 7.781 MB / 298.7 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches