Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.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.OpAmps.NonInvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009426/0.0009426, allocations: 174.3 kB / 16.41 MB, free: 5.684 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.428/1.428, 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.0008359/0.000836, allocations: 91.78 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003345, allocations: 8 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2651, allocations: 47.58 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp): time 0.002922/0.2681, allocations: 2.294 MB / 376.9 MB, free: 43.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.2696, allocations: 0.6885 MB / 377.5 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001786/0.2698, allocations: 3.531 kB / 377.6 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.2699, allocations: 31.95 kB / 377.6 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001706/0.2701, allocations: 72.02 kB / 377.7 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002471/0.2704, allocations: 71.06 kB / 377.7 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003395/0.2707, allocations: 316.3 kB / 378 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002061/0.2709, allocations: 65.05 kB / 378.1 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.2711, allocations: 115.7 kB / 378.2 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001825/0.2713, allocations: 123.8 kB / 378.3 MB, free: 42.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.28e-05/0.2714, allocations: 14.84 kB / 378.3 MB, free: 42.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.238e-05/0.2715, allocations: 15.34 kB / 378.4 MB, free: 42.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.56e-05/0.2715, allocations: 54.62 kB / 378.4 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.124e-05/0.2716, allocations: 72.75 kB / 378.5 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002265/0.2718, allocations: 233.7 kB / 378.7 MB, free: 42.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.2718, allocations: 8 kB / 378.7 MB, free: 42.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.2719, allocations: 0 / 378.7 MB, free: 42.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.2719, allocations: 0 / 378.7 MB, free: 42.25 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.00123/0.2731, allocations: 0.6052 MB / 379.3 MB, free: 41.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.2732, allocations: 13.02 kB / 379.3 MB, free: 41.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.996e-05/0.2732, allocations: 31.25 kB / 379.4 MB, free: 41.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.2736, allocations: 262.3 kB / 379.6 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.2736, allocations: 21.38 kB / 379.6 MB, free: 41.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.152e-05/0.2736, allocations: 25.62 kB / 379.7 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000651/0.2743, allocations: 257.5 kB / 379.9 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.2743, allocations: 0 / 379.9 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.2744, allocations: 10.28 kB / 379.9 MB, free: 41.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.2744, allocations: 4.438 kB / 379.9 MB, free: 41.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008384/0.2752, allocations: 292.5 kB / 380.2 MB, free: 41.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/0.2768, allocations: 0.8923 MB / 381.1 MB, free: 40.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008085/0.2777, allocations: 260.7 kB / 381.4 MB, free: 40.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003278/0.278, allocations: 115.7 kB / 381.5 MB, free: 40.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.223e-05/0.278, allocations: 5.797 kB / 381.5 MB, free: 40.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005024/0.2785, allocations: 191.6 kB / 381.7 MB, free: 40.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.354e-06/0.2786, allocations: 4 kB / 381.7 MB, free: 40.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.002266/0.2808, allocations: 0.7078 MB / 382.4 MB, free: 39.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.2809, allocations: 110.1 kB / 382.5 MB, free: 39.58 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/0.2812, allocations: 266.5 kB / 382.8 MB, free: 39.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.2812, allocations: 27.11 kB / 382.8 MB, free: 39.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.2814, allocations: 178.4 kB / 383 MB, free: 39.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.78e-05/0.2814, allocations: 42.3 kB / 383 MB, free: 39.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.351e-05/0.2814, allocations: 0.9688 kB / 383 MB, free: 39.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.233e-05/0.2815, allocations: 339.8 kB / 383.3 MB, free: 38.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003367/0.2819, allocations: 103 kB / 383.4 MB, free: 38.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003658/0.2822, allocations: 188.2 kB / 383.6 MB, free: 38.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003536/0.2826, allocations: 142.6 kB / 383.8 MB, free: 38.56 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.2826, allocations: 0.9062 kB / 383.8 MB, free: 38.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001242/0.2839, allocations: 486.3 kB / 384.2 MB, free: 38.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.284, allocations: 178.2 kB / 384.4 MB, free: 38.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/0.284, allocations: 2.281 kB / 384.4 MB, free: 38.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003559/0.2844, allocations: 81.83 kB / 384.5 MB, free: 38.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/0.2846, allocations: 53.19 kB / 384.5 MB, free: 38.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002438/0.2871, allocations: 1.818 MB / 386.4 MB, free: 36.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004221/0.2875, allocations: 54.77 kB / 386.4 MB, free: 36.4 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.734e-05/0.2875, allocations: 11.16 kB / 386.4 MB, free: 36.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.699e-06/0.2875, allocations: 2.969 kB / 386.4 MB, free: 36.39 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007209/0.2883, allocations: 331.2 kB / 386.7 MB, free: 36.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2883, allocations: 4 kB / 386.7 MB, free: 36.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-05/0.2884, allocations: 40.83 kB / 386.8 MB, free: 36.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001801/0.2886, allocations: 51.86 kB / 386.8 MB, free: 36.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008951/0.2895, allocations: 1.538 MB / 388.4 MB, free: 34.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002965/0.2898, allocations: 51.91 kB / 388.4 MB, free: 34.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.2898, allocations: 8 kB / 388.4 MB, free: 34.3 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (20): * Single equations (assignments): 18 * 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.000182/0.29, allocations: 216.2 kB / 388.6 MB, free: 34.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.671e-05/0.2901, allocations: 31.67 kB / 388.7 MB, free: 34.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.881e-05/0.2901, allocations: 21.83 kB / 388.7 MB, free: 34.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.2901, allocations: 4 kB / 388.7 MB, free: 34.03 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.2901, allocations: 4 kB / 388.7 MB, free: 34.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2901, allocations: 0 / 388.7 MB, free: 34.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002144/0.2903, allocations: 297.4 kB / 389 MB, free: 33.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.2904, allocations: 3.984 kB / 389 MB, free: 33.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.2905, allocations: 35.86 kB / 389 MB, free: 33.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001959/0.2907, allocations: 80.8 kB / 389.1 MB, free: 33.56 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.2907, allocations: 192 / 389.1 MB, free: 33.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001459/0.2922, allocations: 1.729 MB / 390.8 MB, free: 31.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2922, allocations: 4.062 kB / 390.8 MB, free: 31.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00079/0.293, allocations: 369.4 kB / 391.2 MB, free: 31.31 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.841e-05/0.2931, allocations: 108.8 kB / 391.3 MB, free: 31.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.243e-05/0.2931, allocations: 3.953 kB / 391.3 MB, free: 31.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002385/0.2933, allocations: 43.97 kB / 391.4 MB, free: 31.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.832e-05/0.2934, allocations: 19.97 kB / 391.4 MB, free: 31.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.2935, allocations: 4 kB / 391.4 MB, free: 31.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001516/0.2936, allocations: 186 kB / 391.6 MB, free: 30.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2936, allocations: 0 / 391.6 MB, free: 30.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005472/0.2942, allocations: 123.8 kB / 391.7 MB, free: 30.81 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 (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.0001331/0.2943, allocations: 99.25 kB / 391.8 MB, free: 30.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001544/0.2959, allocations: 0.8053 MB / 392.6 MB, free: 29.86 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.2959, allocations: 0 / 392.6 MB, free: 29.86 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004515/0.2963, allocations: 251 kB / 392.8 MB, free: 29.6 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.2967, allocations: 52.88 kB / 392.9 MB, free: 29.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00204/0.2988, allocations: 0.91 MB / 393.8 MB, free: 28.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001803/0.299, allocations: 0.7521 MB / 394.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.052e-05/0.299, allocations: 19.44 kB / 394.6 MB, free: 27.81 MB / 298.7 MB Notification: Performance of SimCode: time 1.443e-06/0.2991, allocations: 0 / 394.6 MB, free: 27.81 MB / 298.7 MB Notification: Performance of Templates: time 0.005789/0.3048, allocations: 4.18 MB / 398.7 MB, free: 23.64 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/NonInvertingAmp/NonInvertingAmp.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches