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.001696/0.001702, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001778/0.001777, allocations: 187.1 kB / 18.71 MB, free: 4.371 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.536/1.536, allocations: 222.9 MB / 242.4 MB, free: 15.1 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.2504/0.2504, allocations: 44.19 MB / 336.8 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 67.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4086/0.4099, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.004447/0.4144, allocations: 1.612 MB / 0.52 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.4156, allocations: 484.1 kB / 0.5204 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.4158, allocations: 5.25 kB / 0.5205 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.416, allocations: 11.75 kB / 0.5205 GB, free: 1.832 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.404e-05/0.416, allocations: 13.52 kB / 0.5205 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.4163, allocations: 40.53 kB / 0.5205 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001966/0.4165, allocations: 77.17 kB / 0.5206 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.4167, allocations: 28.45 kB / 0.5206 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.816e-05/0.4168, allocations: 30.09 kB / 0.5206 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.265e-05/0.4169, allocations: 33.31 kB / 0.5207 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.723e-05/0.4169, allocations: 6.625 kB / 0.5207 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.866e-05/0.4169, allocations: 6.062 kB / 0.5207 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.193e-05/0.417, allocations: 26.45 kB / 0.5207 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.078e-05/0.417, allocations: 34.92 kB / 0.5207 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002084/0.4172, allocations: 77.17 kB / 0.5208 GB, free: 1.637 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.4173, allocations: 0 / 0.5208 GB, free: 1.637 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4173, allocations: 0 / 0.5208 GB, free: 1.637 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.4173, allocations: 1.031 kB / 0.5208 GB, free: 1.637 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.0006206/0.4179, allocations: 392.1 kB / 0.5212 GB, free: 1.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.024e-05/0.418, allocations: 10.19 kB / 0.5212 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.253e-05/0.4181, allocations: 42.97 kB / 0.5212 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.789e-05/0.4182, allocations: 14.17 kB / 0.5213 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004603/0.4186, allocations: 193.8 kB / 0.5214 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/0.4187, allocations: 8.656 kB / 0.5215 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.525e-05/0.4187, allocations: 10.11 kB / 0.5215 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002379/0.4189, allocations: 75.48 kB / 0.5215 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.419, allocations: 1.156 kB / 0.5215 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.419, allocations: 0 / 0.5215 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.419, allocations: 3.016 kB / 0.5215 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.4192, allocations: 43.66 kB / 0.5216 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008766/0.4201, allocations: 350.7 kB / 0.5219 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001567/0.4202, allocations: 51.61 kB / 0.522 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.029e-05/0.4203, allocations: 16.67 kB / 0.522 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.4203, allocations: 0.6562 kB / 0.522 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002003/0.4205, allocations: 74.61 kB / 0.522 GB, free: 496 kB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 2.305e-06/0.4205, allocations: 0 / 0.522 GB, free: 496 kB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003526/0.4209, allocations: 94.14 kB / 0.5221 GB, free: 436 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.4209, allocations: 56.67 kB / 0.5222 GB, free: 368 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.4211, allocations: 140.3 kB / 0.5223 GB, free: 252 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.4211, allocations: 27.73 kB / 0.5224 GB, free: 220 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.556e-05/0.4212, allocations: 98.12 kB / 0.5224 GB, free: 124 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.109e-05/0.4212, allocations: 24.5 kB / 0.5225 GB, free: 104 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.652e-05/0.4213, allocations: 24.47 kB / 0.5225 GB, free: 84 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.4215, allocations: 319.5 kB / 0.5228 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.881e-05/0.4216, allocations: 19.36 kB / 0.5228 GB, free: 15.76 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.001e-05/0.4217, allocations: 36.72 kB / 0.5229 GB, free: 15.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/0.4219, allocations: 57.28 kB / 0.5229 GB, free: 15.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.4219, allocations: 1.344 kB / 0.5229 GB, free: 15.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002065/0.4221, allocations: 84.14 kB / 0.523 GB, free: 15.63 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.934e-05/0.4221, allocations: 5 kB / 0.523 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/0.4222, allocations: 5.844 kB / 0.523 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.755e-05/0.4222, allocations: 5.156 kB / 0.523 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.925e-05/0.4223, allocations: 11.36 kB / 0.523 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.4223, allocations: 1.312 kB / 0.523 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.057e-05/0.4224, allocations: 14.61 kB / 0.523 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.4224, allocations: 6.844 kB / 0.523 GB, free: 15.61 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.0001267/0.4226, allocations: 116.9 kB / 0.5231 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.386e-05/0.4226, allocations: 7.469 kB / 0.5232 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.831e-05/0.4227, allocations: 16 kB / 0.5232 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.4227, allocations: 5.938 kB / 0.5232 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.4227, allocations: 0 / 0.5232 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.4227, allocations: 1.797 kB / 0.5232 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005361/0.4232, allocations: 348.3 kB / 0.5235 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.4233, allocations: 4 kB / 0.5235 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.24e-05/0.4233, allocations: 4.141 kB / 0.5235 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.4233, allocations: 2 kB / 0.5235 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.4234, allocations: 0.75 kB / 0.5235 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.4234, allocations: 1.516 kB / 0.5235 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4234, allocations: 0 / 0.5235 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003236/0.4237, allocations: 196.6 kB / 0.5237 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.963e-05/0.4238, allocations: 89.47 kB / 0.5238 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.717e-05/0.4238, allocations: 9.891 kB / 0.5238 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.805e-05/0.4239, allocations: 5.203 kB / 0.5238 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.856e-05/0.424, allocations: 6.812 kB / 0.5238 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.424, allocations: 2.188 kB / 0.5238 GB, free: 14.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001126/0.4241, allocations: 108 kB / 0.5239 GB, free: 14.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4241, allocations: 0 / 0.5239 GB, free: 14.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002593/0.4244, allocations: 16.69 kB / 0.5239 GB, free: 14.77 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.0007413/0.4252, allocations: 0.7263 MB / 0.5246 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002013/0.4254, allocations: 48.52 kB / 0.5247 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4254, allocations: 0 / 0.5247 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.045e-05/0.4255, allocations: 24.11 kB / 0.5247 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/0.4258, allocations: 22.61 kB / 0.5247 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002085/0.4279, allocations: 1.524 MB / 0.5262 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004096/0.4283, allocations: 0.6942 MB / 0.5269 GB, free: 12.01 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.186e-05/0.4284, allocations: 11.34 kB / 0.5269 GB, free: 12.01 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.922e-05/0.4285, allocations: 30.66 kB / 0.5269 GB, free: 11.98 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4285, allocations: 5.031 kB / 0.5269 GB, free: 11.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02532/0.4538, allocations: 2.277 MB / 0.5292 GB, free: 11.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.641/8.095, allocations: 5.531 kB / 0.5292 GB, free: 11.29 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) "" Variables in the reference:time,integrator.y Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,const0.k,const0.y,const1.k,const1.y,der(integrator.y),fallingEdge.pre_u_start,fallingEdge.u,fallingEdge.y,integrator.initType,integrator.k,integrator.reset,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,switch.u1,switch.u2,switch.u3,switch.y,time