Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",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.001083/0.001083, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.00118/0.00118, allocations: 183.1 kB / 18.71 MB, free: 4.348 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.425/1.425, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2424/0.2424, allocations: 44.19 MB / 336.8 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 67.89 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4305/0.4319, allocations: 60.82 MB / 0.5184 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001866/0.4338, allocations: 0.8196 MB / 0.5192 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001953/0.434, allocations: 45.84 kB / 0.5192 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.207e-05/0.4341, allocations: 1.094 kB / 0.5192 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001155/0.4342, allocations: 10.33 kB / 0.5193 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.913e-05/0.4342, allocations: 1.25 kB / 0.5193 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001148/0.4343, allocations: 28.06 kB / 0.5193 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001107/0.4345, allocations: 37.2 kB / 0.5193 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.4346, allocations: 18.56 kB / 0.5193 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.83e-05/0.4346, allocations: 9.453 kB / 0.5193 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.371e-05/0.4347, allocations: 16.78 kB / 0.5194 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.875e-05/0.4347, allocations: 3.125 kB / 0.5194 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.172e-05/0.4347, allocations: 3.312 kB / 0.5194 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.012e-05/0.4347, allocations: 6.578 kB / 0.5194 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.488e-05/0.4348, allocations: 26.05 kB / 0.5194 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.667e-05/0.4349, allocations: 36.67 kB / 0.5194 GB, free: 2.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4349, allocations: 1.25 kB / 0.5194 GB, free: 2.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.4349, allocations: 3.938 kB / 0.5194 GB, free: 2.641 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.4349, allocations: 0 / 0.5194 GB, free: 2.641 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003523/0.4352, allocations: 356.3 kB / 0.5198 GB, free: 2.266 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.4353, allocations: 9.219 kB / 0.5198 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.93e-05/0.4353, allocations: 34.66 kB / 0.5198 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.616e-05/0.4354, allocations: 7.281 kB / 0.5198 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001666/0.4355, allocations: 180.8 kB / 0.52 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.4356, allocations: 6.531 kB / 0.52 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.934e-05/0.4356, allocations: 2.5 kB / 0.52 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/0.4357, allocations: 54.19 kB / 0.5201 GB, free: 1.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.4357, allocations: 3.938 kB / 0.5201 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.4357, allocations: 1.875 kB / 0.5201 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.4357, allocations: 0 / 0.5201 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.181e-05/0.4358, allocations: 14.34 kB / 0.5201 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004321/0.4362, allocations: 297.3 kB / 0.5204 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.487e-05/0.4363, allocations: 25.14 kB / 0.5204 GB, free: 1.641 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.535e-05/0.4363, allocations: 7.141 kB / 0.5204 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.723e-06/0.4363, allocations: 1.5 kB / 0.5204 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.051e-05/0.4364, allocations: 53.23 kB / 0.5204 GB, free: 1.578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.4364, allocations: 1.188 kB / 0.5204 GB, free: 1.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001493/0.4365, allocations: 58.06 kB / 0.5205 GB, free: 1.531 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.709e-05/0.4366, allocations: 52.62 kB / 0.5206 GB, free: 1.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.332e-05/0.4367, allocations: 121 kB / 0.5207 GB, free: 1.359 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.334e-06/0.4367, allocations: 25.7 kB / 0.5207 GB, free: 1.328 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.306e-05/0.4367, allocations: 95.86 kB / 0.5208 GB, free: 1.234 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.162e-05/0.4367, allocations: 5.797 kB / 0.5208 GB, free: 1.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-05/0.4368, allocations: 18.7 kB / 0.5208 GB, free: 1.211 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.119e-05/0.4368, allocations: 322.4 kB / 0.5211 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.996e-05/0.4368, allocations: 12.25 kB / 0.5211 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.344e-05/0.4369, allocations: 16.25 kB / 0.5211 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.512e-05/0.4369, allocations: 26.95 kB / 0.5212 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.4369, allocations: 0 / 0.5212 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.994e-05/0.437, allocations: 52.5 kB / 0.5212 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.437, allocations: 6.453 kB / 0.5212 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.437, allocations: 0 / 0.5212 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.437, allocations: 8.969 kB / 0.5212 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.172e-05/0.4371, allocations: 8.312 kB / 0.5212 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.4371, allocations: 0.6562 kB / 0.5212 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.863e-05/0.4371, allocations: 6.188 kB / 0.5212 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/0.4371, allocations: 2.562 kB / 0.5213 GB, free: 0.7891 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 5.768e-05/0.4372, allocations: 113.2 kB / 0.5214 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.122e-05/0.4372, allocations: 5.906 kB / 0.5214 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.418e-05/0.4372, allocations: 11.12 kB / 0.5214 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.4373, allocations: 0 / 0.5214 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.4373, allocations: 8.969 kB / 0.5214 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.4373, allocations: 4.594 kB / 0.5214 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000217/0.4375, allocations: 291.6 kB / 0.5217 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.4375, allocations: 1.438 kB / 0.5217 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.076e-05/0.4375, allocations: 2.281 kB / 0.5217 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4375, allocations: 0 / 0.5217 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.4376, allocations: 5.062 kB / 0.5217 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.4376, allocations: 0.7031 kB / 0.5217 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.4376, allocations: 1.125 kB / 0.5217 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.4377, allocations: 157.2 kB / 0.5218 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.599e-05/0.4377, allocations: 79.66 kB / 0.5219 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.4377, allocations: 4.734 kB / 0.5219 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.284e-05/0.4378, allocations: 2.203 kB / 0.5219 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.506e-05/0.4378, allocations: 6.625 kB / 0.5219 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-06/0.4378, allocations: 6.203 kB / 0.5219 GB, free: 80 kB / 382.1 MB Notification: Performance of sorting global known variables: time 3.374e-05/0.4379, allocations: 90.83 kB / 0.522 GB, free: 0 / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4379, allocations: 0 / 0.522 GB, free: 0 / 382.1 MB Notification: Performance of remove unused functions: time 0.0002124/0.4381, allocations: 13.45 kB / 0.522 GB, free: 15.99 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0003786/0.4385, allocations: 0.6826 MB / 0.5227 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.221e-05/0.4386, allocations: 16.41 kB / 0.5227 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.4386, allocations: 5.406 kB / 0.5227 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.068e-05/0.4386, allocations: 10.28 kB / 0.5227 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.4389, allocations: 17.22 kB / 0.5227 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.4402, allocations: 1.284 MB / 0.524 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.4406, allocations: 0.6918 MB / 0.5247 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.157e-05/0.4406, allocations: 6.969 kB / 0.5247 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/0.4406, allocations: 15.08 kB / 0.5247 GB, free: 13.36 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4406, allocations: 1.062 kB / 0.5247 GB, free: 13.36 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0191/0.4597, allocations: 1.597 MB / 0.5262 GB, free: 12.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/8.113, allocations: 0.9375 kB / 0.5262 GB, free: 12.95 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,integrator.y Variables in the result:const.k,const.y,der(integrator.y),greaterEqualThreshold.threshold,greaterEqualThreshold.u,greaterEqualThreshold.y,integrator.initType,integrator.k,integrator.reset,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,time