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.001663/0.001662, allocations: 174.2 kB / 16.72 MB, free: 5.051 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.473/1.473, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0008339/0.0008341, allocations: 101.2 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003898/0.0003901, allocations: 8 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.276, allocations: 47.56 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.002597/0.2786, allocations: 2.338 MB / 377.4 MB, free: 43.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.2797, allocations: 0.658 MB / 378.1 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.2798, allocations: 4.562 kB / 378.1 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.2799, allocations: 31.84 kB / 378.1 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001609/0.2801, allocations: 77.22 kB / 378.2 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002285/0.2804, allocations: 60.39 kB / 378.2 MB, free: 42.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003423/0.2807, allocations: 349.2 kB / 378.6 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.2809, allocations: 97.81 kB / 378.7 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001541/0.2811, allocations: 122.2 kB / 378.8 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.2813, allocations: 142.8 kB / 378.9 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.036e-05/0.2813, allocations: 18.47 kB / 379 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.307e-05/0.2814, allocations: 17.5 kB / 379 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.135e-05/0.2815, allocations: 51.3 kB / 379 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.2816, allocations: 164.1 kB / 379.2 MB, free: 42.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002317/0.2819, allocations: 272.3 kB / 379.5 MB, free: 42.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.2819, allocations: 0.9688 kB / 379.5 MB, free: 42.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2819, allocations: 3.938 kB / 379.5 MB, free: 42.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.2819, allocations: 0 / 379.5 MB, free: 42.11 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.001081/0.283, allocations: 0.621 MB / 380.1 MB, free: 41.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.283, allocations: 8.5 kB / 380.1 MB, free: 41.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.453e-05/0.2831, allocations: 33.94 kB / 380.1 MB, free: 41.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.2834, allocations: 280.4 kB / 380.4 MB, free: 41.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.2834, allocations: 18.59 kB / 380.4 MB, free: 41.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.418e-05/0.2835, allocations: 20.44 kB / 380.4 MB, free: 41.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006458/0.2841, allocations: 314 kB / 380.7 MB, free: 41.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.2841, allocations: 5.141 kB / 380.7 MB, free: 41.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.973e-05/0.2842, allocations: 9.875 kB / 380.8 MB, free: 41.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.2842, allocations: 6 kB / 380.8 MB, free: 41.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007725/0.285, allocations: 280.5 kB / 381 MB, free: 40.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.2867, allocations: 1.114 MB / 382.2 MB, free: 39.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007962/0.2875, allocations: 231.7 kB / 382.4 MB, free: 39.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003303/0.2878, allocations: 104.5 kB / 382.5 MB, free: 39.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/0.2879, allocations: 12.95 kB / 382.5 MB, free: 39.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005044/0.2884, allocations: 177.4 kB / 382.7 MB, free: 39.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.533e-06/0.2884, allocations: 0 / 382.7 MB, free: 39.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.002118/0.2905, allocations: 0.5472 MB / 383.2 MB, free: 39.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.2906, allocations: 109.2 kB / 383.3 MB, free: 39.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003465/0.2909, allocations: 289.1 kB / 383.6 MB, free: 38.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.291, allocations: 27.14 kB / 383.6 MB, free: 38.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.2911, allocations: 197.1 kB / 383.8 MB, free: 38.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.995e-05/0.2911, allocations: 36.89 kB / 383.9 MB, free: 38.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.475e-05/0.2912, allocations: 5.438 kB / 383.9 MB, free: 38.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.629e-05/0.2913, allocations: 336.2 kB / 384.2 MB, free: 38.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003306/0.2916, allocations: 102.8 kB / 384.3 MB, free: 38.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003959/0.292, allocations: 212.1 kB / 384.5 MB, free: 38.15 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006951/0.2927, allocations: 333 kB / 384.8 MB, free: 37.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2927, allocations: 9.156 kB / 384.8 MB, free: 37.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001217/0.2939, allocations: 437.2 kB / 385.3 MB, free: 37.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.616e-05/0.294, allocations: 36.3 kB / 385.3 MB, free: 37.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.294, allocations: 8.375 kB / 385.3 MB, free: 37.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000356/0.2944, allocations: 76.14 kB / 385.4 MB, free: 37.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002379/0.2946, allocations: 53.91 kB / 385.4 MB, free: 37.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002023/0.2967, allocations: 1.596 MB / 387 MB, free: 36.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000373/0.2971, allocations: 62.38 kB / 387.1 MB, free: 36.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/0.2971, allocations: 13.38 kB / 387.1 MB, free: 36.01 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.0001517/0.2972, allocations: 136.7 kB / 387.2 MB, free: 35.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.431e-05/0.2973, allocations: 31.59 kB / 387.3 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.994e-05/0.2974, allocations: 28.12 kB / 387.3 MB, free: 35.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2974, allocations: 1.031 kB / 387.3 MB, free: 35.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2974, allocations: 4.906 kB / 387.3 MB, free: 35.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.341e-06/0.2974, allocations: 3.984 kB / 387.3 MB, free: 35.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003149/0.2977, allocations: 305.6 kB / 387.6 MB, free: 35.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.2977, allocations: 1.094 kB / 387.6 MB, free: 35.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001257/0.2978, allocations: 25.94 kB / 387.6 MB, free: 35.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002339/0.2981, allocations: 72.58 kB / 387.7 MB, free: 35.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.2981, allocations: 3.938 kB / 387.7 MB, free: 35.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001544/0.2997, allocations: 1.582 MB / 389.3 MB, free: 33.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2997, allocations: 0 / 389.3 MB, free: 33.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008397/0.3005, allocations: 333.4 kB / 389.6 MB, free: 33.4 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.399e-05/0.3006, allocations: 120.7 kB / 389.7 MB, free: 33.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.423e-05/0.3007, allocations: 4 kB / 389.7 MB, free: 33.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.3009, allocations: 39.95 kB / 389.8 MB, free: 33.22 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.488e-05/0.301, allocations: 19.97 kB / 389.8 MB, free: 33.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.301, allocations: 8 kB / 389.8 MB, free: 33.19 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001671/0.3012, allocations: 198 kB / 390 MB, free: 33 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3012, allocations: 0 / 390 MB, free: 33 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003465/0.3015, allocations: 75.84 kB / 390.1 MB, free: 32.92 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.0001538/0.3017, allocations: 103.2 kB / 390.2 MB, free: 32.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008515/0.3026, allocations: 437.8 kB / 390.6 MB, free: 32.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3026, allocations: 0.625 kB / 390.6 MB, free: 32.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003693/0.303, allocations: 238.5 kB / 390.8 MB, free: 32.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003102/0.3033, allocations: 44.81 kB / 390.9 MB, free: 32.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009115/0.3042, allocations: 0.5683 MB / 391.4 MB, free: 31.47 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002225/0.3044, allocations: 0.7482 MB / 392.2 MB, free: 30.7 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.048e-05/0.3045, allocations: 19.44 kB / 392.2 MB, free: 30.68 MB / 298.7 MB Notification: Performance of SimCode: time 3.7e-07/0.3045, allocations: 0 / 392.2 MB, free: 30.68 MB / 298.7 MB Notification: Performance of Templates: time 0.005689/0.3102, allocations: 4.365 MB / 396.6 MB, free: 26.32 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