Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001833/0.001833, allocations: 113.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001954/0.001955, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.967/1.967, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3097/0.3097, allocations: 44.2 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00214/0.00214, allocations: 63.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6691/0.6713, allocations: 60.83 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.004659/0.676, allocations: 1.604 MB / 0.52 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001077/0.6771, allocations: 488.5 kB / 0.5205 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.6772, allocations: 9.062 kB / 0.5205 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003022/0.6775, allocations: 9.984 kB / 0.5205 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.96e-05/0.6777, allocations: 14.88 kB / 0.5205 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002502/0.678, allocations: 40.02 kB / 0.5205 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002018/0.6782, allocations: 77.53 kB / 0.5206 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.6783, allocations: 25.06 kB / 0.5206 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.447e-05/0.6784, allocations: 37 kB / 0.5207 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001085/0.6785, allocations: 37.39 kB / 0.5207 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.6785, allocations: 6.469 kB / 0.5207 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.056e-05/0.6786, allocations: 6.469 kB / 0.5207 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.649e-05/0.6786, allocations: 17.61 kB / 0.5207 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.631e-05/0.6787, allocations: 32.52 kB / 0.5208 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.6789, allocations: 77.53 kB / 0.5208 GB, free: 1.629 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.6789, allocations: 1.406 kB / 0.5208 GB, free: 1.629 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.6789, allocations: 0 / 0.5208 GB, free: 1.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.571e-05/0.6789, allocations: 0 / 0.5208 GB, free: 1.629 MB / 382.1 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.001005/0.6799, allocations: 403.5 kB / 0.5212 GB, free: 1.234 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.022e-05/0.68, allocations: 9.25 kB / 0.5212 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.505e-05/0.6801, allocations: 38.62 kB / 0.5213 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.069e-05/0.6801, allocations: 11.06 kB / 0.5213 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.6804, allocations: 189.7 kB / 0.5214 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.6805, allocations: 7.688 kB / 0.5215 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.141e-05/0.6805, allocations: 6.656 kB / 0.5215 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002306/0.6808, allocations: 83.48 kB / 0.5215 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.6808, allocations: 4.875 kB / 0.5215 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.987e-05/0.6808, allocations: 1.766 kB / 0.5215 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.6809, allocations: 2.031 kB / 0.5215 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002919/0.6812, allocations: 36.02 kB / 0.5216 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007772/0.682, allocations: 357.9 kB / 0.5219 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001343/0.6821, allocations: 51.84 kB / 0.522 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.909e-05/0.6822, allocations: 16.81 kB / 0.522 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.6822, allocations: 1.312 kB / 0.522 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001588/0.6823, allocations: 69.86 kB / 0.5221 GB, free: 488 kB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.6824, allocations: 0 / 0.5221 GB, free: 488 kB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004495/0.6828, allocations: 89.95 kB / 0.5221 GB, free: 432 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.501e-05/0.6829, allocations: 52.41 kB / 0.5222 GB, free: 368 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.6831, allocations: 146.5 kB / 0.5223 GB, free: 244 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.6831, allocations: 28.81 kB / 0.5224 GB, free: 212 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.8e-05/0.6832, allocations: 102 kB / 0.5225 GB, free: 112 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.421e-05/0.6832, allocations: 20.81 kB / 0.5225 GB, free: 96 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.882e-05/0.6833, allocations: 22.45 kB / 0.5225 GB, free: 76 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.6835, allocations: 320.1 kB / 0.5228 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.074e-05/0.6836, allocations: 23.05 kB / 0.5228 GB, free: 15.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.644e-05/0.6836, allocations: 41.5 kB / 0.5229 GB, free: 15.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.559e-05/0.6837, allocations: 45.81 kB / 0.5229 GB, free: 15.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.6837, allocations: 0 / 0.5229 GB, free: 15.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001848/0.6839, allocations: 91.94 kB / 0.523 GB, free: 15.62 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.684, allocations: 8.609 kB / 0.523 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.684, allocations: 4.938 kB / 0.523 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.684, allocations: 5.156 kB / 0.523 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.745e-05/0.6841, allocations: 11.94 kB / 0.523 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.6841, allocations: 1.781 kB / 0.523 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.17e-05/0.6842, allocations: 14.23 kB / 0.523 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.874e-06/0.6842, allocations: 2.719 kB / 0.523 GB, free: 15.6 MB / 398.1 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,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001158/0.6843, allocations: 116.7 kB / 0.5232 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.236e-05/0.6843, allocations: 7.453 kB / 0.5232 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001457/0.6845, allocations: 16.3 kB / 0.5232 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.932e-05/0.6845, allocations: 1.062 kB / 0.5232 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.762e-05/0.6846, allocations: 9.25 kB / 0.5232 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.6846, allocations: 0.6094 kB / 0.5232 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005498/0.6851, allocations: 352.6 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.6852, allocations: 0.7031 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.083e-05/0.6852, allocations: 4.625 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.6852, allocations: 1.531 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.6853, allocations: 0.6562 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.6853, allocations: 1.188 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.6853, allocations: 0.7031 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003387/0.6856, allocations: 200.1 kB / 0.5237 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.543e-05/0.6857, allocations: 85.48 kB / 0.5238 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/0.6857, allocations: 5.844 kB / 0.5238 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.467e-05/0.6858, allocations: 4.531 kB / 0.5238 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.101e-05/0.6859, allocations: 11.56 kB / 0.5238 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.6859, allocations: 2.562 kB / 0.5238 GB, free: 14.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001897/0.6861, allocations: 108.3 kB / 0.5239 GB, free: 14.76 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6862, allocations: 4.062 kB / 0.5239 GB, free: 14.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003418/0.6865, allocations: 15.86 kB / 0.524 GB, free: 14.75 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007604/0.6873, allocations: 0.7239 MB / 0.5247 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002043/0.6875, allocations: 46.73 kB / 0.5247 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.6875, allocations: 3.938 kB / 0.5247 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.59e-05/0.6876, allocations: 28.47 kB / 0.5247 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005991/0.6882, allocations: 22.45 kB / 0.5248 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002395/0.6906, allocations: 1.522 MB / 0.5262 GB, free: 12.69 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000507/0.6911, allocations: 0.7021 MB / 0.5269 GB, free: 11.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.04e-05/0.6912, allocations: 7.734 kB / 0.5269 GB, free: 11.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.6914, allocations: 26.28 kB / 0.527 GB, free: 11.96 MB / 398.1 MB Notification: Performance of SimCode: time 6.593e-06/0.6914, allocations: 1.766 kB / 0.527 GB, free: 11.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03975/0.7312, allocations: 2.234 MB / 0.5291 GB, free: 11.31 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.743/10.47, allocations: 8.969 kB / 0.5292 GB, free: 11.31 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches