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.InvertingAmp.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 178.5 kB / 16.71 MB, free: 4.957 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.276/1.276, allocations: 225.7 MB / 243.2 MB, free: 8.449 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.0007914/0.0007914, allocations: 93.78 kB / 294.4 MB, free: 9.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002578/0.0002579, allocations: 4 kB / 354.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2294, allocations: 50.41 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.002057/0.2315, allocations: 2.374 MB / 406.9 MB, free: 28.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007335/0.2323, allocations: 0.6872 MB / 407.6 MB, free: 28.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.867e-05/0.2324, allocations: 4 kB / 407.6 MB, free: 28.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001012/0.2325, allocations: 35.75 kB / 407.7 MB, free: 28.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001363/0.2327, allocations: 72.08 kB / 407.7 MB, free: 28.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001976/0.2329, allocations: 84.66 kB / 407.8 MB, free: 28.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002281/0.2331, allocations: 356.1 kB / 408.2 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.2333, allocations: 109 kB / 408.3 MB, free: 27.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.2334, allocations: 127.4 kB / 408.4 MB, free: 27.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.2335, allocations: 143.3 kB / 408.5 MB, free: 27.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.493e-05/0.2336, allocations: 23.98 kB / 408.6 MB, free: 27.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.974e-05/0.2336, allocations: 16 kB / 408.6 MB, free: 27.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.451e-05/0.2337, allocations: 55.7 kB / 408.6 MB, free: 27.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.2338, allocations: 172.9 kB / 408.8 MB, free: 27.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002206/0.234, allocations: 348.2 kB / 409.1 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.234, allocations: 0 / 409.1 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.234, allocations: 0 / 409.1 MB, free: 26.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.234, allocations: 1.344 kB / 409.1 MB, free: 26.7 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.0009337/0.235, allocations: 0.6119 MB / 409.8 MB, free: 26.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.867e-05/0.235, allocations: 8.031 kB / 409.8 MB, free: 26.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.561e-05/0.2351, allocations: 40.55 kB / 409.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.2353, allocations: 276.6 kB / 410.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.2353, allocations: 24.88 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.257e-05/0.2354, allocations: 24.38 kB / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005413/0.2359, allocations: 315.6 kB / 410.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.2359, allocations: 0 / 410.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.563e-05/0.236, allocations: 11.98 kB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.236, allocations: 8 kB / 410.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006615/0.2367, allocations: 269.6 kB / 410.7 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.238, allocations: 1.117 MB / 411.8 MB, free: 23.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006843/0.2386, allocations: 238.6 kB / 412.1 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002717/0.2389, allocations: 104.8 kB / 412.2 MB, free: 23.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.239, allocations: 0 / 412.2 MB, free: 23.47 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003906/0.2394, allocations: 177.9 kB / 412.3 MB, free: 23.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.143e-06/0.2394, allocations: 0 / 412.3 MB, free: 23.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.001739/0.2411, allocations: 0.5537 MB / 412.9 MB, free: 22.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.262e-05/0.2412, allocations: 106.8 kB / 413 MB, free: 22.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002096/0.2414, allocations: 290.5 kB / 413.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.2414, allocations: 29.7 kB / 413.3 MB, free: 22.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.049e-05/0.2415, allocations: 191.5 kB / 413.5 MB, free: 22.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.2415, allocations: 39.55 kB / 413.5 MB, free: 22 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.053e-05/0.2415, allocations: 0 / 413.5 MB, free: 22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.855e-05/0.2416, allocations: 334.8 kB / 413.9 MB, free: 21.67 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.2419, allocations: 108.2 kB / 414 MB, free: 21.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003066/0.2422, allocations: 210.1 kB / 414.2 MB, free: 21.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005546/0.2427, allocations: 333.3 kB / 414.5 MB, free: 20.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2428, allocations: 3.938 kB / 414.5 MB, free: 20.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009612/0.2437, allocations: 451.6 kB / 414.9 MB, free: 20.47 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.2438, allocations: 29.7 kB / 415 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.2438, allocations: 11.92 kB / 415 MB, free: 20.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002831/0.2441, allocations: 76.84 kB / 415.1 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.2443, allocations: 55.91 kB / 415.1 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/0.2458, allocations: 1.589 MB / 416.7 MB, free: 18.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002965/0.2461, allocations: 59.66 kB / 416.8 MB, free: 18.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.2462, allocations: 12 kB / 416.8 MB, free: 18.5 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 ($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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001001/0.2463, allocations: 145.8 kB / 416.9 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.84e-05/0.2463, allocations: 31.64 kB / 417 MB, free: 18.31 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.72e-05/0.2464, allocations: 21.72 kB / 417 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.2464, allocations: 3.984 kB / 417 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-06/0.2464, allocations: 0 / 417 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2464, allocations: 3.984 kB / 417 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.2466, allocations: 301.4 kB / 417.3 MB, free: 17.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2466, allocations: 192 / 417.3 MB, free: 17.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.2467, allocations: 39.97 kB / 417.3 MB, free: 17.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002115/0.2469, allocations: 64.8 kB / 417.4 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.2469, allocations: 0 / 417.4 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001416/0.2484, allocations: 1.574 MB / 419 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2484, allocations: 4.062 kB / 419 MB, free: 16.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000806/0.2492, allocations: 333.3 kB / 419.3 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.928e-05/0.2493, allocations: 120.7 kB / 419.4 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.601e-05/0.2493, allocations: 8 kB / 419.4 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002204/0.2495, allocations: 31.95 kB / 419.4 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.68e-05/0.2496, allocations: 35.91 kB / 419.5 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.2496, allocations: 0 / 419.5 MB, free: 15.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001383/0.2498, allocations: 202 kB / 419.7 MB, free: 15.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2498, allocations: 0 / 419.7 MB, free: 15.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002862/0.2501, allocations: 79.84 kB / 419.7 MB, free: 15.29 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.0001112/0.2502, allocations: 99.25 kB / 419.8 MB, free: 15.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008021/0.251, allocations: 430 kB / 420.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.251, allocations: 3.938 kB / 420.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003711/0.2514, allocations: 243.1 kB / 420.5 MB, free: 14.49 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.2517, allocations: 44.75 kB / 420.5 MB, free: 14.44 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007606/0.2525, allocations: 0.5633 MB / 421.1 MB, free: 13.85 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001362/0.2526, allocations: 0.7482 MB / 421.9 MB, free: 13.08 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.941e-05/0.2527, allocations: 34.27 kB / 421.9 MB, free: 13.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.972e-05/0.2528, allocations: 23.38 kB / 421.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of SimCode: time 1.041e-06/0.2528, allocations: 0 / 421.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of Templates: time 0.005894/0.2587, allocations: 3.765 MB / 425.7 MB, free: 9.273 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/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