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.00172/0.00172, allocations: 179.3 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.0007397/0.0007398, allocations: 82.38 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002913/0.0002913, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2191/0.2194, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.002602/0.2221, allocations: 2.335 MB / 376.9 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.2232, allocations: 0.655 MB / 377.5 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002479/0.2235, allocations: 4.688 kB / 377.5 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.2236, allocations: 36.31 kB / 377.6 MB, free: 43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001979/0.2238, allocations: 76.53 kB / 377.7 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002333/0.2241, allocations: 64.8 kB / 377.7 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003469/0.2244, allocations: 336.1 kB / 378 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.2247, allocations: 97.12 kB / 378.1 MB, free: 42.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001958/0.2249, allocations: 118.2 kB / 378.3 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001958/0.2251, allocations: 147.7 kB / 378.4 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.356e-05/0.2252, allocations: 17.47 kB / 378.4 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.093e-05/0.2252, allocations: 18.16 kB / 378.4 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.642e-05/0.2253, allocations: 51.52 kB / 378.5 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.537e-05/0.2254, allocations: 84.86 kB / 378.6 MB, free: 42.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000221/0.2256, allocations: 272.2 kB / 378.8 MB, free: 42.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2256, allocations: 4.906 kB / 378.8 MB, free: 42.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2256, allocations: 0 / 378.8 MB, free: 42.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.2257, allocations: 4 kB / 378.8 MB, free: 42.15 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.001117/0.2268, allocations: 0.615 MB / 379.5 MB, free: 41.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2268, allocations: 9.094 kB / 379.5 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.785e-05/0.2269, allocations: 36.17 kB / 379.5 MB, free: 41.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002739/0.2272, allocations: 258.6 kB / 379.8 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.2272, allocations: 23.08 kB / 379.8 MB, free: 41.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.027e-05/0.2273, allocations: 27.88 kB / 379.8 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006593/0.228, allocations: 315.5 kB / 380.1 MB, free: 41.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.228, allocations: 0 / 380.1 MB, free: 41.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.228, allocations: 10.09 kB / 380.1 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.228, allocations: 10.78 kB / 380.1 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008119/0.2288, allocations: 267.8 kB / 380.4 MB, free: 40.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001559/0.2304, allocations: 1.119 MB / 381.5 MB, free: 39.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007914/0.2312, allocations: 244.4 kB / 381.8 MB, free: 39.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000312/0.2315, allocations: 99.98 kB / 381.8 MB, free: 39.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.2316, allocations: 6.719 kB / 381.9 MB, free: 39.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004492/0.232, allocations: 180.7 kB / 382 MB, free: 39.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.623e-06/0.232, allocations: 0 / 382 MB, free: 39.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.002124/0.2342, allocations: 0.5539 MB / 382.6 MB, free: 39.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.2342, allocations: 105.4 kB / 382.7 MB, free: 39.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.2345, allocations: 276.6 kB / 383 MB, free: 39.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.2345, allocations: 30.67 kB / 383 MB, free: 38.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.482e-05/0.2346, allocations: 204.6 kB / 383.2 MB, free: 38.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.803e-05/0.2347, allocations: 41.42 kB / 383.2 MB, free: 38.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.296e-05/0.2347, allocations: 5.125 kB / 383.2 MB, free: 38.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.383e-05/0.2347, allocations: 332.4 kB / 383.6 MB, free: 38.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003494/0.2351, allocations: 107.1 kB / 383.7 MB, free: 38.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003753/0.2355, allocations: 208.8 kB / 383.9 MB, free: 38.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003686/0.2359, allocations: 147.4 kB / 384 MB, free: 38.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.2359, allocations: 0 / 384 MB, free: 38.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00119/0.2371, allocations: 449.5 kB / 384.4 MB, free: 37.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.207e-05/0.2372, allocations: 36.33 kB / 384.5 MB, free: 37.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.2372, allocations: 4.094 kB / 384.5 MB, free: 37.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003404/0.2375, allocations: 76.67 kB / 384.6 MB, free: 37.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002286/0.2378, allocations: 51.06 kB / 384.6 MB, free: 37.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001963/0.2397, allocations: 1.599 MB / 386.2 MB, free: 36.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000404/0.2402, allocations: 62.17 kB / 386.3 MB, free: 36.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.2402, allocations: 9.344 kB / 386.3 MB, free: 36.23 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 (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.0001553/0.2404, allocations: 145.9 kB / 386.4 MB, free: 36.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.34e-05/0.2404, allocations: 22.47 kB / 386.4 MB, free: 36.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.805e-05/0.2405, allocations: 29.05 kB / 386.5 MB, free: 36.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2405, allocations: 1.469 kB / 386.5 MB, free: 36.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.2405, allocations: 0 / 386.5 MB, free: 36.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.2405, allocations: 3.953 kB / 386.5 MB, free: 36.06 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002736/0.2408, allocations: 306 kB / 386.8 MB, free: 35.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.2408, allocations: 0 / 386.8 MB, free: 35.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.2409, allocations: 28.94 kB / 386.8 MB, free: 35.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000311/0.2413, allocations: 65.59 kB / 386.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.2413, allocations: 8.922 kB / 386.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/0.2432, allocations: 1.574 MB / 388.5 MB, free: 34.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.2433, allocations: 4.031 kB / 388.5 MB, free: 34.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009421/0.2442, allocations: 341.3 kB / 388.8 MB, free: 33.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.2443, allocations: 116.7 kB / 388.9 MB, free: 33.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.855e-05/0.2444, allocations: 4 kB / 388.9 MB, free: 33.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.2446, allocations: 35.97 kB / 388.9 MB, free: 33.67 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.048e-05/0.2447, allocations: 23.95 kB / 389 MB, free: 33.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.2447, allocations: 8 kB / 389 MB, free: 33.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000165/0.2449, allocations: 198 kB / 389.2 MB, free: 33.45 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2449, allocations: 0 / 389.2 MB, free: 33.45 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004067/0.2453, allocations: 75.84 kB / 389.2 MB, free: 33.38 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 (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.0001238/0.2455, allocations: 107.2 kB / 389.3 MB, free: 33.26 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.2466, allocations: 440.7 kB / 389.8 MB, free: 32.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2466, allocations: 0 / 389.8 MB, free: 32.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005114/0.2471, allocations: 235.2 kB / 390 MB, free: 32.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000374/0.2475, allocations: 41.69 kB / 390 MB, free: 32.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.2487, allocations: 0.576 MB / 390.6 MB, free: 31.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.2489, allocations: 0.7521 MB / 391.4 MB, free: 31.14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.032e-05/0.249, allocations: 23.44 kB / 391.4 MB, free: 31.11 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.249, allocations: 0 / 391.4 MB, free: 31.11 MB / 298.7 MB Notification: Performance of Templates: time 0.006096/0.2551, allocations: 4.379 MB / 395.8 MB, free: 26.75 MB / 298.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/jenkins/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