Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001272/0.001272, allocations: 193.8 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.6 MB / 243.4 MB, free: 6.434 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007419/0.0007419, allocations: 101.4 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2954/0.2954, allocations: 44.81 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002693/0.0002694, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2874, allocations: 62.96 MB / 0.5159 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.0009999/0.2884, allocations: 0.5205 MB / 0.5164 GB, free: 36.99 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001837/0.2886, allocations: 43.59 kB / 0.5164 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.399e-05/0.2887, allocations: 3.938 kB / 0.5164 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001044/0.2888, allocations: 4 kB / 0.5164 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.526e-05/0.2889, allocations: 6.781 kB / 0.5164 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001001/0.289, allocations: 10.58 kB / 0.5164 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.2891, allocations: 34.44 kB / 0.5165 GB, free: 36.93 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.2892, allocations: 21.08 kB / 0.5165 GB, free: 36.92 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.086e-05/0.2892, allocations: 10.94 kB / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.382e-05/0.2893, allocations: 10.17 kB / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.2893, allocations: 0 / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.718e-06/0.2893, allocations: 2.75 kB / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.404e-05/0.2893, allocations: 11.88 kB / 0.5165 GB, free: 36.9 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.789e-05/0.2894, allocations: 42.48 kB / 0.5166 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.263e-05/0.2894, allocations: 23.45 kB / 0.5166 GB, free: 36.85 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.2894, allocations: 0 / 0.5166 GB, free: 36.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2895, allocations: 0 / 0.5166 GB, free: 36.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.2895, allocations: 0 / 0.5166 GB, free: 36.85 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003919/0.2899, allocations: 346.4 kB / 0.5169 GB, free: 36.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.2899, allocations: 9.219 kB / 0.5169 GB, free: 36.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.383e-05/0.2899, allocations: 8.875 kB / 0.5169 GB, free: 36.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.2901, allocations: 183.8 kB / 0.5171 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.2901, allocations: 7.469 kB / 0.5171 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.268e-05/0.2901, allocations: 384 / 0.5171 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.2902, allocations: 53 kB / 0.5172 GB, free: 36.22 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.2903, allocations: 192 / 0.5172 GB, free: 36.22 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.2903, allocations: 6.875 kB / 0.5172 GB, free: 36.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.2903, allocations: 3.938 kB / 0.5172 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.157e-05/0.2903, allocations: 13.12 kB / 0.5172 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000437/0.2908, allocations: 297.5 kB / 0.5175 GB, free: 35.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.666e-05/0.2908, allocations: 21.39 kB / 0.5175 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.522e-05/0.2909, allocations: 7.797 kB / 0.5175 GB, free: 35.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.024e-05/0.2909, allocations: 0 / 0.5175 GB, free: 35.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.076e-05/0.291, allocations: 58.36 kB / 0.5176 GB, free: 35.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.291, allocations: 4 kB / 0.5176 GB, free: 35.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001286/0.2911, allocations: 52.2 kB / 0.5176 GB, free: 35.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.274e-05/0.2911, allocations: 54.25 kB / 0.5177 GB, free: 35.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.51e-05/0.2912, allocations: 113.6 kB / 0.5178 GB, free: 35.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.356e-06/0.2912, allocations: 28.89 kB / 0.5178 GB, free: 35.58 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.836e-05/0.2913, allocations: 91.05 kB / 0.5179 GB, free: 35.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.289e-05/0.2913, allocations: 14.62 kB / 0.5179 GB, free: 35.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-06/0.2913, allocations: 0 / 0.5179 GB, free: 35.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.679e-05/0.2913, allocations: 326 kB / 0.5182 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.447e-05/0.2914, allocations: 6.906 kB / 0.5182 GB, free: 35.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.159e-05/0.2914, allocations: 19.88 kB / 0.5182 GB, free: 35.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.072e-05/0.2914, allocations: 25.42 kB / 0.5183 GB, free: 35.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.2914, allocations: 0 / 0.5183 GB, free: 35.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.445e-05/0.2915, allocations: 55.17 kB / 0.5183 GB, free: 35.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.2915, allocations: 9.719 kB / 0.5183 GB, free: 35.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.2915, allocations: 4.031 kB / 0.5183 GB, free: 35.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.2915, allocations: 2.969 kB / 0.5183 GB, free: 35.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.954e-05/0.2916, allocations: 3.844 kB / 0.5183 GB, free: 35.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.2916, allocations: 0 / 0.5183 GB, free: 35.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.861e-05/0.2916, allocations: 0 / 0.5183 GB, free: 35.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/0.2916, allocations: 10.78 kB / 0.5183 GB, free: 35.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.502e-05/0.2917, allocations: 112.3 kB / 0.5184 GB, free: 34.94 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.946e-06/0.2917, allocations: 2.938 kB / 0.5185 GB, free: 34.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.854e-05/0.2917, allocations: 7.906 kB / 0.5185 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.2917, allocations: 4 kB / 0.5185 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.2918, allocations: 6.812 kB / 0.5185 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.2918, allocations: 0 / 0.5185 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002257/0.292, allocations: 302.4 kB / 0.5188 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.292, allocations: 3.938 kB / 0.5188 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.887e-05/0.292, allocations: 2.938 kB / 0.5188 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.292, allocations: 0 / 0.5188 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-06/0.2921, allocations: 0 / 0.5188 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.2921, allocations: 3.938 kB / 0.5188 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2921, allocations: 4 kB / 0.5188 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000106/0.2922, allocations: 151.5 kB / 0.5189 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.136e-05/0.2922, allocations: 81.02 kB / 0.519 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.2922, allocations: 6.812 kB / 0.519 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.823e-05/0.2923, allocations: 7.938 kB / 0.519 GB, free: 34.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.631e-05/0.2923, allocations: 6.719 kB / 0.519 GB, free: 34.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-06/0.2923, allocations: 0 / 0.519 GB, free: 34.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.294e-05/0.2924, allocations: 95.25 kB / 0.5191 GB, free: 34.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2924, allocations: 0 / 0.5191 GB, free: 34.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002242/0.2926, allocations: 5.594 kB / 0.5191 GB, free: 34.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.814e-05/0.2927, allocations: 90.75 kB / 0.5192 GB, free: 34.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.621e-05/0.2928, allocations: 26.69 kB / 0.5192 GB, free: 34.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2928, allocations: 0 / 0.5192 GB, free: 34.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.7e-05/0.2928, allocations: 10.22 kB / 0.5192 GB, free: 34.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/0.2931, allocations: 6.281 kB / 0.5192 GB, free: 34.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002586/0.2933, allocations: 170.3 kB / 0.5194 GB, free: 34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001268/0.2935, allocations: 0.6872 MB / 0.5201 GB, free: 33.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.055e-05/0.2935, allocations: 10.31 kB / 0.5201 GB, free: 33.29 MB / 378.7 MB Notification: Performance of SimCode: time 8.72e-07/0.2935, allocations: 0 / 0.5201 GB, free: 33.29 MB / 378.7 MB Notification: Performance of Templates: time 0.001768/0.2953, allocations: 0.7266 MB / 0.5208 GB, free: 33.25 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches