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.DifferentialAmplifier.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.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009502/0.0009502, allocations: 186.6 kB / 16.71 MB, free: 4.961 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.272/1.272, allocations: 225.7 MB / 243.2 MB, free: 8.457 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.0007799/0.00078, allocations: 91.2 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002592/0.0002592, allocations: 11.94 kB / 354.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.2199, allocations: 50.41 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.003751/0.2237, allocations: 3.858 MB / 408.4 MB, free: 27.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.2259, allocations: 1.154 MB / 409.6 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003177/0.2263, allocations: 12.62 kB / 409.6 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004028/0.2267, allocations: 119.8 kB / 409.7 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003689/0.2271, allocations: 161.7 kB / 409.9 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004144/0.2275, allocations: 173 kB / 410.1 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005179/0.228, allocations: 0.7201 MB / 410.8 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003323/0.2284, allocations: 232.5 kB / 411 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002086/0.2286, allocations: 238.9 kB / 411.2 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002646/0.2289, allocations: 286.6 kB / 411.5 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.976e-05/0.2289, allocations: 36 kB / 411.5 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.734e-05/0.229, allocations: 32 kB / 411.6 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.295e-05/0.2291, allocations: 115.3 kB / 411.7 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002238/0.2293, allocations: 328 kB / 412 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004479/0.2298, allocations: 0.6901 MB / 412.7 MB, free: 23.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.2298, allocations: 0 / 412.7 MB, free: 23.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.083e-06/0.2298, allocations: 0 / 412.7 MB, free: 23.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.2298, allocations: 0 / 412.7 MB, free: 23.18 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001726/0.2316, allocations: 0.8541 MB / 413.6 MB, free: 22.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.2316, allocations: 8.031 kB / 413.6 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.2318, allocations: 76.09 kB / 413.6 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006197/0.2325, allocations: 401.9 kB / 414 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.416e-05/0.2325, allocations: 45.69 kB / 414.1 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.2326, allocations: 52.38 kB / 414.1 MB, free: 21.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.2339, allocations: 0.5535 MB / 414.7 MB, free: 21.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.2339, allocations: 0 / 414.7 MB, free: 21.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.517e-05/0.234, allocations: 24 kB / 414.7 MB, free: 21.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.234, allocations: 16 kB / 414.7 MB, free: 21.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000761/0.2347, allocations: 429 kB / 415.1 MB, free: 20.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002503/0.2373, allocations: 1.855 MB / 417 MB, free: 18.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006931/0.238, allocations: 0.5305 MB / 417.5 MB, free: 18.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007737/0.2388, allocations: 437.1 kB / 418 MB, free: 17.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.41e-05/0.2388, allocations: 8.266 kB / 418 MB, free: 17.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004661/0.2393, allocations: 302.2 kB / 418.3 MB, free: 17.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.663e-06/0.2393, allocations: 0 / 418.3 MB, free: 17.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=41): time 0.003562/0.2429, allocations: 1.38 MB / 419.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.931e-05/0.243, allocations: 239.3 kB / 419.9 MB, free: 15.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00043/0.2434, allocations: 433.8 kB / 420.3 MB, free: 15.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.842e-05/0.2434, allocations: 29.7 kB / 420.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.2436, allocations: 312.1 kB / 420.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.49e-05/0.2437, allocations: 137.9 kB / 420.8 MB, free: 14.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.763e-05/0.2437, allocations: 8 kB / 420.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.068e-05/0.2438, allocations: 358.8 kB / 421.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002797/0.2441, allocations: 157 kB / 421.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003521/0.2444, allocations: 325.7 kB / 421.6 MB, free: 13.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005979/0.2451, allocations: 447.4 kB / 422 MB, free: 13.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.2451, allocations: 4 kB / 422 MB, free: 13.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001509/0.2466, allocations: 0.818 MB / 422.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.2466, allocations: 7.938 kB / 422.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.2466, allocations: 4 kB / 422.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006462/0.2473, allocations: 223.4 kB / 423.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.2476, allocations: 79.77 kB / 423.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003781/0.2513, allocations: 2.928 MB / 426.1 MB, free: 9.145 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004877/0.2519, allocations: 95.41 kB / 426.2 MB, free: 9.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.2519, allocations: 20 kB / 426.2 MB, free: 9.031 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0002295/0.2521, allocations: 173.8 kB / 426.4 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.288e-05/0.2522, allocations: 51.44 kB / 426.4 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.019e-05/0.2523, allocations: 56.8 kB / 426.5 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.2523, allocations: 8 kB / 426.5 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2523, allocations: 0 / 426.5 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.2523, allocations: 0 / 426.5 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/0.2542, allocations: 1.309 MB / 427.8 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.2542, allocations: 0 / 427.8 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.2543, allocations: 35.98 kB / 427.8 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000549/0.2549, allocations: 216.7 kB / 428 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.2549, allocations: 12 kB / 428 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003402/0.2583, allocations: 2.823 MB / 430.9 MB, free: 4.148 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2584, allocations: 4 kB / 430.9 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/0.2601, allocations: 0.9711 MB / 431.8 MB, free: 3.152 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.967e-05/0.2602, allocations: 132.4 kB / 432 MB, free: 3.004 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.305e-05/0.2602, allocations: 11.94 kB / 432 MB, free: 2.992 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003202/0.2606, allocations: 52.03 kB / 432 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.579e-05/0.2606, allocations: 27.95 kB / 432.1 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.2607, allocations: 11.94 kB / 432.1 MB, free: 2.902 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002572/0.2609, allocations: 299.1 kB / 432.4 MB, free: 2.609 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2609, allocations: 0 / 432.4 MB, free: 2.609 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005575/0.2615, allocations: 183.6 kB / 432.5 MB, free: 2.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001431/0.2617, allocations: 123.2 kB / 432.7 MB, free: 2.301 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001398/0.2631, allocations: 0.681 MB / 433.3 MB, free: 1.609 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2631, allocations: 0.75 kB / 433.3 MB, free: 1.609 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005801/0.2637, allocations: 428.5 kB / 433.8 MB, free: 1.176 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005086/0.2642, allocations: 89.38 kB / 433.9 MB, free: 1.086 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.2656, allocations: 1.174 MB / 435 MB, free: 15.88 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.266, allocations: 0.8632 MB / 435.9 MB, free: 14.99 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000196/0.2662, allocations: 52.45 kB / 435.9 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.509e-05/0.2663, allocations: 27.44 kB / 436 MB, free: 14.91 MB / 314.7 MB Notification: Performance of SimCode: time 4.11e-07/0.2663, allocations: 0 / 436 MB, free: 14.91 MB / 314.7 MB Notification: Performance of Templates: time 0.01259/0.2789, allocations: 6.934 MB / 442.9 MB, free: 8.004 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches