Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.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: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009454/0.0009454, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.201/1.201, allocations: 226.5 MB / 243.4 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007765/0.0007767, allocations: 94.53 kB / 295.5 MB, free: 6.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2697/0.2697, allocations: 44.81 MB / 392.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002617/0.0002618, allocations: 8 kB / 465.4 MB, free: 12.6 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2441, allocations: 62.95 MB / 0.516 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001276/0.2454, allocations: 1.332 MB / 0.5173 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006254/0.2461, allocations: 0.5457 MB / 0.5178 GB, free: 35.72 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.265e-05/0.2461, allocations: 2.781 kB / 0.5178 GB, free: 35.72 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.529e-05/0.2462, allocations: 7.875 kB / 0.5178 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.804e-05/0.2463, allocations: 9.891 kB / 0.5178 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002551/0.2465, allocations: 77.59 kB / 0.5179 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.2467, allocations: 98.95 kB / 0.518 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.233e-05/0.2468, allocations: 27.83 kB / 0.518 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5e-05/0.2468, allocations: 37.91 kB / 0.518 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.885e-05/0.2469, allocations: 30.19 kB / 0.5181 GB, free: 35.58 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.632e-05/0.2469, allocations: 2.844 kB / 0.5181 GB, free: 35.58 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.173e-05/0.2469, allocations: 5.781 kB / 0.5181 GB, free: 35.58 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.752e-05/0.2469, allocations: 21.86 kB / 0.5181 GB, free: 35.56 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.426e-05/0.247, allocations: 58.33 kB / 0.5181 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.158e-05/0.2471, allocations: 57.44 kB / 0.5182 GB, free: 35.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2471, allocations: 0 / 0.5182 GB, free: 35.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2471, allocations: 0 / 0.5182 GB, free: 35.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.2471, allocations: 0 / 0.5182 GB, free: 35.5 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004698/0.2476, allocations: 411.5 kB / 0.5186 GB, free: 35.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.2476, allocations: 11.31 kB / 0.5186 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.809e-05/0.2476, allocations: 37.75 kB / 0.5186 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.794e-05/0.2477, allocations: 10.53 kB / 0.5187 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.2478, allocations: 197 kB / 0.5188 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.2478, allocations: 7.281 kB / 0.5188 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.861e-05/0.2478, allocations: 6.281 kB / 0.5189 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002447/0.2481, allocations: 117.2 kB / 0.519 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.2481, allocations: 3.938 kB / 0.519 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.2481, allocations: 2.875 kB / 0.519 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.2481, allocations: 0 / 0.519 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001456/0.2483, allocations: 63.39 kB / 0.519 GB, free: 34.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000529/0.2488, allocations: 398.3 kB / 0.5194 GB, free: 34.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002928/0.2491, allocations: 112.9 kB / 0.5195 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.2492, allocations: 43.67 kB / 0.5196 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.2493, allocations: 0 / 0.5196 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002235/0.2495, allocations: 102.6 kB / 0.5197 GB, free: 34.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/0.2495, allocations: 7.938 kB / 0.5197 GB, free: 34.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003907/0.2499, allocations: 158.7 kB / 0.5198 GB, free: 34.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.2499, allocations: 55.19 kB / 0.5199 GB, free: 34.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.779e-05/0.25, allocations: 146.2 kB / 0.52 GB, free: 34.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.25, allocations: 25.7 kB / 0.52 GB, free: 34.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.42e-05/0.2501, allocations: 108 kB / 0.5201 GB, free: 33.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.2501, allocations: 25.72 kB / 0.5202 GB, free: 33.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/0.2501, allocations: 0 / 0.5202 GB, free: 33.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.094e-05/0.2502, allocations: 321.1 kB / 0.5205 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.2503, allocations: 44.14 kB / 0.5205 GB, free: 33.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.2504, allocations: 54.09 kB / 0.5206 GB, free: 33.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/0.2506, allocations: 87.33 kB / 0.5206 GB, free: 33.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2506, allocations: 0 / 0.5206 GB, free: 33.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002475/0.2509, allocations: 129.6 kB / 0.5208 GB, free: 33.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.2509, allocations: 9.562 kB / 0.5208 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.2509, allocations: 0 / 0.5208 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.658e-06/0.2509, allocations: 2.594 kB / 0.5208 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.106e-05/0.251, allocations: 25.12 kB / 0.5208 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.251, allocations: 0 / 0.5208 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.807e-05/0.2511, allocations: 20.75 kB / 0.5208 GB, free: 33.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.2511, allocations: 2.688 kB / 0.5208 GB, free: 33.46 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: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.859e-05/0.2512, allocations: 124.5 kB / 0.5209 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.442e-05/0.2512, allocations: 14.81 kB / 0.521 GB, free: 33.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.782e-05/0.2512, allocations: 15.59 kB / 0.521 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2512, allocations: 0 / 0.521 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.2512, allocations: 0 / 0.521 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2512, allocations: 2.969 kB / 0.521 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000396/0.2516, allocations: 405.2 kB / 0.5214 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2517, allocations: 0 / 0.5214 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.892e-05/0.2517, allocations: 14.45 kB / 0.5214 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2518, allocations: 3.094 kB / 0.5214 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.2518, allocations: 4 kB / 0.5214 GB, free: 32.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.2518, allocations: 0 / 0.5214 GB, free: 32.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.2518, allocations: 0 / 0.5214 GB, free: 32.97 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003723/0.2522, allocations: 271.3 kB / 0.5216 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.182e-05/0.2522, allocations: 83.89 kB / 0.5217 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.2522, allocations: 2.938 kB / 0.5217 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.2524, allocations: 24.12 kB / 0.5218 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.516e-05/0.2524, allocations: 16.2 kB / 0.5218 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.2524, allocations: 4.062 kB / 0.5218 GB, free: 32.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.787e-05/0.2525, allocations: 117.2 kB / 0.5219 GB, free: 32.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2525, allocations: 96 / 0.5219 GB, free: 32.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002056/0.2527, allocations: 19.5 kB / 0.5219 GB, free: 32.6 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: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 0.0004969/0.2532, allocations: 0.7895 MB / 0.5227 GB, free: 31.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002518/0.2535, allocations: 95.09 kB / 0.5228 GB, free: 31.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2535, allocations: 0 / 0.5228 GB, free: 31.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.2536, allocations: 50.11 kB / 0.5228 GB, free: 31.87 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.2539, allocations: 21.7 kB / 0.5228 GB, free: 31.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.2549, allocations: 0.7512 MB / 0.5236 GB, free: 31.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.108e-05/0.255, allocations: 0.6982 MB / 0.5242 GB, free: 30.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.318e-05/0.2551, allocations: 28.03 kB / 0.5243 GB, free: 30.63 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2551, allocations: 0 / 0.5243 GB, free: 30.63 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.406/2.661, allocations: 1.62 MB / 0.5259 GB, free: 30.51 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches