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.001857/0.001857, allocations: 109.5 kB / 17.78 MB, free: 5.293 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.001804/0.001804, allocations: 188 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.365/1.365, allocations: 222.9 MB / 242.4 MB, free: 15.15 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.2116/0.2116, allocations: 44.18 MB / 336.7 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 67.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.325, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002444/0.3275, allocations: 1.604 MB / 0.52 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007009/0.3283, allocations: 496.4 kB / 0.5204 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.627e-05/0.3283, allocations: 1.312 kB / 0.5204 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.3285, allocations: 12.41 kB / 0.5205 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.398e-05/0.3285, allocations: 15.25 kB / 0.5205 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001843/0.3287, allocations: 33.55 kB / 0.5205 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001484/0.3289, allocations: 77.58 kB / 0.5206 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.329, allocations: 36.61 kB / 0.5206 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.738e-05/0.3291, allocations: 34.02 kB / 0.5206 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.856e-05/0.3291, allocations: 34.33 kB / 0.5207 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.377e-05/0.3292, allocations: 6.094 kB / 0.5207 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.457e-05/0.3292, allocations: 5.875 kB / 0.5207 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.663e-05/0.3292, allocations: 18.31 kB / 0.5207 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.639e-05/0.3293, allocations: 35.45 kB / 0.5207 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.3294, allocations: 76.5 kB / 0.5208 GB, free: 1.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.768e-06/0.3294, allocations: 0 / 0.5208 GB, free: 1.633 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3294, allocations: 1.125 kB / 0.5208 GB, free: 1.633 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.3294, allocations: 0.75 kB / 0.5208 GB, free: 1.633 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.0004652/0.3299, allocations: 400 kB / 0.5212 GB, free: 1.238 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3299, allocations: 9 kB / 0.5212 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.806e-05/0.33, allocations: 38.69 kB / 0.5212 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.55e-05/0.33, allocations: 15.27 kB / 0.5213 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001942/0.3302, allocations: 194 kB / 0.5214 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/0.3303, allocations: 7.938 kB / 0.5215 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.315e-05/0.3303, allocations: 10.34 kB / 0.5215 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.3304, allocations: 83.98 kB / 0.5215 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.3304, allocations: 0 / 0.5215 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.3305, allocations: 1.781 kB / 0.5215 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.3305, allocations: 2.25 kB / 0.5215 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.948e-05/0.3306, allocations: 36.61 kB / 0.5216 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005045/0.3311, allocations: 352.7 kB / 0.5219 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001044/0.3312, allocations: 51.94 kB / 0.522 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.233e-05/0.3312, allocations: 17.95 kB / 0.522 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/0.3312, allocations: 0 / 0.522 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001289/0.3314, allocations: 70.61 kB / 0.5221 GB, free: 488 kB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.3314, allocations: 0 / 0.5221 GB, free: 488 kB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002089/0.3316, allocations: 84.72 kB / 0.5221 GB, free: 436 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.108e-05/0.3316, allocations: 57.11 kB / 0.5222 GB, free: 368 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.543e-05/0.3317, allocations: 138.9 kB / 0.5223 GB, free: 252 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.3318, allocations: 27.47 kB / 0.5223 GB, free: 220 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.651e-05/0.3318, allocations: 103 kB / 0.5224 GB, free: 120 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.3318, allocations: 19.53 kB / 0.5225 GB, free: 104 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.789e-05/0.3319, allocations: 24.36 kB / 0.5225 GB, free: 84 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.332, allocations: 320.1 kB / 0.5228 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.883e-05/0.332, allocations: 18.61 kB / 0.5228 GB, free: 15.76 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.185e-05/0.3321, allocations: 41.7 kB / 0.5228 GB, free: 15.72 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.212e-05/0.3322, allocations: 58.25 kB / 0.5229 GB, free: 15.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3322, allocations: 0 / 0.5229 GB, free: 15.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001402/0.3323, allocations: 83.38 kB / 0.523 GB, free: 15.62 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.3324, allocations: 6.969 kB / 0.523 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.3324, allocations: 3.938 kB / 0.523 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.3324, allocations: 9.766 kB / 0.523 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.275e-05/0.3325, allocations: 11.88 kB / 0.523 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.3325, allocations: 1.125 kB / 0.523 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.905e-05/0.3325, allocations: 14.59 kB / 0.523 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.3326, allocations: 3.25 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.0001141/0.3327, allocations: 118.1 kB / 0.5231 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.67e-05/0.3327, allocations: 8.031 kB / 0.5232 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.87e-05/0.3327, allocations: 16.27 kB / 0.5232 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.3328, allocations: 13.73 kB / 0.5232 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3328, allocations: 0.9062 kB / 0.5232 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.3328, allocations: 0.5625 kB / 0.5232 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000357/0.3331, allocations: 348.3 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3331, allocations: 1.594 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.671e-05/0.3332, allocations: 3.891 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3332, allocations: 1.125 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.3332, allocations: 1.547 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3332, allocations: 0 / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3332, allocations: 1.094 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002184/0.3335, allocations: 201 kB / 0.5237 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.586e-05/0.3335, allocations: 88.31 kB / 0.5238 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.034e-05/0.3336, allocations: 5.312 kB / 0.5238 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.905e-05/0.3336, allocations: 6.484 kB / 0.5238 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.947e-05/0.3337, allocations: 5.969 kB / 0.5238 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.463e-06/0.3337, allocations: 2.953 kB / 0.5238 GB, free: 14.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.839e-05/0.3338, allocations: 108.1 kB / 0.5239 GB, free: 14.76 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3338, allocations: 4 kB / 0.5239 GB, free: 14.76 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002279/0.334, allocations: 16.22 kB / 0.5239 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.0004626/0.3345, allocations: 0.7227 MB / 0.5246 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001297/0.3346, allocations: 42.81 kB / 0.5247 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3346, allocations: 1.562 kB / 0.5247 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.052e-05/0.3347, allocations: 24.27 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.0003015/0.335, allocations: 23.41 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.001512/0.3365, allocations: 1.521 MB / 0.5262 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.3368, allocations: 0.6987 MB / 0.5269 GB, free: 12 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.756e-05/0.3368, allocations: 10.56 kB / 0.5269 GB, free: 12 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.536e-05/0.3369, allocations: 28 kB / 0.5269 GB, free: 11.98 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3369, allocations: 3.938 kB / 0.5269 GB, free: 11.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01892/0.3558, allocations: 2.273 MB / 0.5292 GB, free: 11.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.642/7.998, allocations: 6.594 kB / 0.5292 GB, free: 11.3 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