Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009437/0.0009438, allocations: 198.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 226.5 MB / 243.4 MB, free: 6.398 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007194/0.0007194, allocations: 98.94 kB / 295.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.265/0.265, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002557/0.0002559, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2521, allocations: 62.96 MB / 0.516 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001261/0.2534, allocations: 1.311 MB / 0.5172 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005902/0.254, allocations: 484.4 kB / 0.5177 GB, free: 36.01 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.321e-05/0.254, allocations: 6.781 kB / 0.5177 GB, free: 36.01 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.091e-05/0.2541, allocations: 7.938 kB / 0.5177 GB, free: 36 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.496e-05/0.2542, allocations: 11.34 kB / 0.5177 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001312/0.2543, allocations: 22.67 kB / 0.5177 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 9.887e-05/0.2544, allocations: 79.28 kB / 0.5178 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.923e-05/0.2545, allocations: 31.84 kB / 0.5178 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.246e-05/0.2546, allocations: 27.73 kB / 0.5179 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.225e-05/0.2546, allocations: 28.09 kB / 0.5179 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.466e-05/0.2546, allocations: 2.844 kB / 0.5179 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.117e-05/0.2547, allocations: 2.844 kB / 0.5179 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.595e-05/0.2547, allocations: 10.78 kB / 0.5179 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.983e-05/0.2547, allocations: 53.33 kB / 0.518 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.772e-05/0.2548, allocations: 48.94 kB / 0.518 GB, free: 35.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2548, allocations: 0 / 0.518 GB, free: 35.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2548, allocations: 0 / 0.518 GB, free: 35.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.2548, allocations: 3.938 kB / 0.518 GB, free: 35.82 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0003791/0.2552, allocations: 374.5 kB / 0.5184 GB, free: 35.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.2552, allocations: 11.53 kB / 0.5184 GB, free: 35.45 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.28e-05/0.2553, allocations: 37.72 kB / 0.5184 GB, free: 35.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.523e-05/0.2553, allocations: 7.781 kB / 0.5184 GB, free: 35.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.2554, allocations: 200.6 kB / 0.5186 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.2555, allocations: 10.7 kB / 0.5186 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.73e-05/0.2555, allocations: 10.16 kB / 0.5186 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/0.2556, allocations: 79.39 kB / 0.5187 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.2556, allocations: 0 / 0.5187 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.2556, allocations: 4 kB / 0.5187 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.2557, allocations: 2.875 kB / 0.5187 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.739e-05/0.2557, allocations: 32.17 kB / 0.5188 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004376/0.2562, allocations: 364.7 kB / 0.5191 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.345e-05/0.2563, allocations: 43.06 kB / 0.5191 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.725e-05/0.2563, allocations: 14.67 kB / 0.5192 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.805e-06/0.2563, allocations: 0 / 0.5192 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000112/0.2564, allocations: 73.11 kB / 0.5192 GB, free: 34.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.2564, allocations: 4 kB / 0.5192 GB, free: 34.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001759/0.2566, allocations: 91.98 kB / 0.5193 GB, free: 34.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/0.2567, allocations: 54.28 kB / 0.5194 GB, free: 34.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.715e-05/0.2567, allocations: 139.3 kB / 0.5195 GB, free: 34.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.094e-05/0.2568, allocations: 29.7 kB / 0.5195 GB, free: 34.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.276e-05/0.2568, allocations: 96.94 kB / 0.5196 GB, free: 34.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.2568, allocations: 14.78 kB / 0.5196 GB, free: 34.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.059e-06/0.2568, allocations: 4 kB / 0.5196 GB, free: 34.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.037e-05/0.2569, allocations: 324.7 kB / 0.5199 GB, free: 34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.218e-05/0.2569, allocations: 20.05 kB / 0.52 GB, free: 33.99 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.66e-05/0.257, allocations: 37.34 kB / 0.52 GB, free: 33.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.594e-05/0.257, allocations: 47.62 kB / 0.52 GB, free: 33.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.257, allocations: 0 / 0.52 GB, free: 33.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001063/0.2571, allocations: 97.19 kB / 0.5201 GB, free: 33.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/0.2571, allocations: 6.031 kB / 0.5201 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.2572, allocations: 3.938 kB / 0.5202 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.2572, allocations: 2.812 kB / 0.5202 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.451e-05/0.2572, allocations: 6 kB / 0.5202 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.2572, allocations: 0 / 0.5202 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.39e-05/0.2573, allocations: 17.31 kB / 0.5202 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.2573, allocations: 2.906 kB / 0.5202 GB, free: 33.84 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.fallingEdge.not_u,fallingEdge.not_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.701e-05/0.2574, allocations: 123.7 kB / 0.5203 GB, free: 33.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.284e-05/0.2574, allocations: 9.781 kB / 0.5203 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.46e-05/0.2574, allocations: 16.03 kB / 0.5203 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2574, allocations: 3.125 kB / 0.5203 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.2574, allocations: 0 / 0.5203 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2575, allocations: 7.875 kB / 0.5203 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002212/0.2577, allocations: 342.4 kB / 0.5207 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2577, allocations: 0 / 0.5207 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.382e-05/0.2577, allocations: 9.328 kB / 0.5207 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2578, allocations: 0 / 0.5207 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.2578, allocations: 8 kB / 0.5207 GB, free: 33.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.2578, allocations: 4 kB / 0.5207 GB, free: 33.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2578, allocations: 3.938 kB / 0.5207 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001483/0.2579, allocations: 194.2 kB / 0.5209 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.059e-05/0.258, allocations: 80.3 kB / 0.5209 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.258, allocations: 3.031 kB / 0.5209 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.611e-05/0.2581, allocations: 9.141 kB / 0.521 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.2581, allocations: 10.11 kB / 0.521 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.2581, allocations: 7.062 kB / 0.521 GB, free: 33.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.238e-05/0.2582, allocations: 108.6 kB / 0.5211 GB, free: 33 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.2582, allocations: 0 / 0.5211 GB, free: 33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002077/0.2584, allocations: 19.56 kB / 0.5211 GB, free: 33 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,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.0002739/0.2587, allocations: 0.7282 MB / 0.5218 GB, free: 32.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.895e-05/0.2588, allocations: 43.64 kB / 0.5218 GB, free: 32.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2588, allocations: 0 / 0.5218 GB, free: 32.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.138e-05/0.2588, allocations: 26.5 kB / 0.5219 GB, free: 32.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.2591, allocations: 15.84 kB / 0.5219 GB, free: 32.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000796/0.2599, allocations: 0.6422 MB / 0.5225 GB, free: 31.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001017/0.26, allocations: 0.6958 MB / 0.5232 GB, free: 31.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.576e-05/0.2601, allocations: 25.22 kB / 0.5232 GB, free: 31.07 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2601, allocations: 0 / 0.5232 GB, free: 31.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.354/2.614, allocations: 1.461 MB / 0.5246 GB, free: 30.96 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches