Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002644/0.002649, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.83/3.83, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001777/0.001777, allocations: 94.86 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005982/0.0005993, allocations: 15.98 kB / 327 MB, free: 15.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2069, allocations: 47.57 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.005379/0.2123, allocations: 2.224 MB / 376.8 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.2148, allocations: 0.6753 MB / 377.4 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003397/0.2152, allocations: 4 kB / 377.4 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.2154, allocations: 31.75 kB / 377.5 MB, free: 12.46 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005428/0.216, allocations: 99.7 kB / 377.6 MB, free: 12.37 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004908/0.2165, allocations: 63.88 kB / 377.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007512/0.2173, allocations: 243.5 kB / 377.9 MB, free: 12.07 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004195/0.2177, allocations: 90.28 kB / 378 MB, free: 11.98 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003805/0.2181, allocations: 127.5 kB / 378.1 MB, free: 11.86 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003957/0.2185, allocations: 143.4 kB / 378.2 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.244e-05/0.2187, allocations: 16 kB / 378.2 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.2188, allocations: 20 kB / 378.3 MB, free: 11.68 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001056/0.2189, allocations: 47.83 kB / 378.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001653/0.2191, allocations: 77.58 kB / 378.4 MB, free: 11.55 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006179/0.2198, allocations: 275.5 kB / 378.6 MB, free: 11.28 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.2198, allocations: 0 / 378.6 MB, free: 11.28 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.2198, allocations: 3.938 kB / 378.7 MB, free: 11.28 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.2198, allocations: 0 / 378.7 MB, free: 11.28 MB / 282.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.002833/0.2227, allocations: 0.6185 MB / 379.3 MB, free: 10.6 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.649e-05/0.2228, allocations: 16.03 kB / 379.3 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002039/0.223, allocations: 31.62 kB / 379.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006982/0.2237, allocations: 263.4 kB / 379.6 MB, free: 10.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.874e-05/0.2238, allocations: 24.52 kB / 379.6 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.224, allocations: 24 kB / 379.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.2259, allocations: 311.3 kB / 379.9 MB, free: 9.887 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.964e-05/0.226, allocations: 0 / 379.9 MB, free: 9.887 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.333e-05/0.2261, allocations: 12 kB / 379.9 MB, free: 9.875 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.974e-05/0.2261, allocations: 8 kB / 379.9 MB, free: 9.867 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002886/0.229, allocations: 265.6 kB / 380.2 MB, free: 9.609 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004897/0.234, allocations: 1.117 MB / 381.3 MB, free: 8.398 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002509/0.2366, allocations: 246.6 kB / 381.6 MB, free: 8.148 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.376e-05/0.2367, allocations: 0 / 381.6 MB, free: 8.148 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001345/0.238, allocations: 185.8 kB / 381.7 MB, free: 7.945 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 5.15e-06/0.2381, allocations: 0 / 381.7 MB, free: 7.945 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.006061/0.2442, allocations: 0.5459 MB / 382.3 MB, free: 7.371 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/0.2444, allocations: 110.8 kB / 382.4 MB, free: 7.238 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007797/0.2452, allocations: 282.7 kB / 382.7 MB, free: 6.953 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.407e-05/0.2453, allocations: 25.7 kB / 382.7 MB, free: 6.922 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003484/0.2457, allocations: 257.9 kB / 383 MB, free: 6.668 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.2458, allocations: 43.45 kB / 383 MB, free: 6.625 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/0.2459, allocations: 4 kB / 383 MB, free: 6.621 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002411/0.2462, allocations: 326.8 kB / 383.3 MB, free: 6.293 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/0.2473, allocations: 96.16 kB / 383.4 MB, free: 6.199 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/0.2485, allocations: 214.1 kB / 383.6 MB, free: 5.941 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/0.2498, allocations: 146.2 kB / 383.8 MB, free: 5.793 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.2499, allocations: 4 kB / 383.8 MB, free: 5.789 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.003616/0.2535, allocations: 435.7 kB / 384.2 MB, free: 5.352 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001511/0.2537, allocations: 37.69 kB / 384.2 MB, free: 5.309 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.149e-05/0.2538, allocations: 4 kB / 384.2 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009135/0.2547, allocations: 72.84 kB / 384.3 MB, free: 5.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006597/0.2554, allocations: 59.88 kB / 384.4 MB, free: 5.172 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006288/0.2617, allocations: 1.62 MB / 386 MB, free: 3.418 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.2629, allocations: 63.66 kB / 386 MB, free: 3.355 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-05/0.2631, allocations: 8 kB / 386.1 MB, free: 3.348 MB / 282.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003994/0.2635, allocations: 145.8 kB / 386.2 MB, free: 3.195 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.2636, allocations: 31.72 kB / 386.2 MB, free: 3.164 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.2638, allocations: 21.7 kB / 386.2 MB, free: 3.145 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.2638, allocations: 4 kB / 386.3 MB, free: 3.141 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2638, allocations: 0 / 386.3 MB, free: 3.141 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.2639, allocations: 3.953 kB / 386.3 MB, free: 3.137 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007168/0.2646, allocations: 297.4 kB / 386.5 MB, free: 2.797 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.2647, allocations: 0 / 386.5 MB, free: 2.797 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004004/0.2651, allocations: 24.36 kB / 386.6 MB, free: 2.773 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008439/0.2659, allocations: 72.8 kB / 386.6 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.667e-05/0.2661, allocations: 4 kB / 386.6 MB, free: 2.695 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005779/0.2718, allocations: 1.605 MB / 388.2 MB, free: 0.957 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.2719, allocations: 0 / 388.2 MB, free: 0.957 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003136/0.2751, allocations: 341.4 kB / 388.6 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003433/0.2755, allocations: 112.8 kB / 388.7 MB, free: 484 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.924e-05/0.2756, allocations: 0 / 388.7 MB, free: 484 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007833/0.2764, allocations: 39.95 kB / 388.7 MB, free: 444 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002253/0.2767, allocations: 23.97 kB / 388.8 MB, free: 420 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.545e-05/0.2768, allocations: 4 kB / 388.8 MB, free: 416 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005503/0.2773, allocations: 205.8 kB / 389 MB, free: 212 kB / 282.7 MB Notification: Performance of sort global known variables: time 9.91e-07/0.2774, allocations: 0 / 389 MB, free: 212 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009699/0.2784, allocations: 79.84 kB / 389 MB, free: 132 kB / 282.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002808/0.2787, allocations: 107.2 kB / 389.1 MB, free: 12 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.3652/0.6439, allocations: 427.5 kB / 389.6 MB, free: 20.68 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.806e-06/0.644, allocations: 0 / 389.6 MB, free: 20.68 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.6451, allocations: 240.9 kB / 389.8 MB, free: 20.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000617/0.6458, allocations: 38.12 kB / 389.8 MB, free: 20.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.648, allocations: 0.5587 MB / 390.4 MB, free: 20.24 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.6485, allocations: 0.7604 MB / 391.2 MB, free: 19.54 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001727/0.6487, allocations: 19.06 kB / 391.2 MB, free: 19.54 MB / 282.7 MB Notification: Performance of SimCode: time 2.735e-06/0.6487, allocations: 0 / 391.2 MB, free: 19.54 MB / 282.7 MB Notification: Performance of Templates: time 0.02277/0.6715, allocations: 4.266 MB / 395.4 MB, free: 19.4 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches