Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",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.001117/0.001117, allocations: 115.7 kB / 17.78 MB, free: 5.254 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.001076/0.001076, allocations: 185 kB / 18.72 MB, free: 4.332 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.321/1.321, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2059/0.2059, allocations: 44.19 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3135, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002674/0.3162, allocations: 1.628 MB / 0.52 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008348/0.317, allocations: 0.5536 MB / 0.5205 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.294e-05/0.3171, allocations: 5.844 kB / 0.5205 GB, free: 1.777 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001093/0.3173, allocations: 10.64 kB / 0.5206 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.891e-05/0.3173, allocations: 15.7 kB / 0.5206 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003292/0.3177, allocations: 94.8 kB / 0.5207 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001472/0.3178, allocations: 110.9 kB / 0.5208 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.3179, allocations: 32.72 kB / 0.5208 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.717e-05/0.318, allocations: 52.69 kB / 0.5208 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.57e-05/0.3181, allocations: 38.89 kB / 0.5209 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.3181, allocations: 8.062 kB / 0.5209 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.58e-05/0.3182, allocations: 7.938 kB / 0.5209 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.633e-05/0.3182, allocations: 23.69 kB / 0.5209 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.926e-05/0.3182, allocations: 41.36 kB / 0.521 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.3184, allocations: 92.88 kB / 0.521 GB, free: 1.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3184, allocations: 1.094 kB / 0.521 GB, free: 1.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3184, allocations: 0 / 0.521 GB, free: 1.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.3184, allocations: 0 / 0.521 GB, free: 1.512 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005436/0.319, allocations: 412.2 kB / 0.5214 GB, free: 1.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.319, allocations: 10.09 kB / 0.5215 GB, free: 1.121 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.001e-05/0.3191, allocations: 43.45 kB / 0.5215 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.719e-05/0.3191, allocations: 14.22 kB / 0.5215 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002214/0.3193, allocations: 200 kB / 0.5217 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.3194, allocations: 11.75 kB / 0.5217 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/0.3194, allocations: 9.75 kB / 0.5217 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.3197, allocations: 102.7 kB / 0.5218 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.3197, allocations: 0 / 0.5218 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.3197, allocations: 5.922 kB / 0.5218 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3197, allocations: 1.188 kB / 0.5218 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.3199, allocations: 53.97 kB / 0.5219 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005807/0.3205, allocations: 391.5 kB / 0.5222 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003369/0.3208, allocations: 100.5 kB / 0.5223 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.3209, allocations: 37.11 kB / 0.5224 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.361e-05/0.321, allocations: 5.312 kB / 0.5224 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002395/0.3212, allocations: 104.3 kB / 0.5225 GB, free: 336 kB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.3212, allocations: 0 / 0.5225 GB, free: 336 kB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004481/0.3217, allocations: 142.6 kB / 0.5226 GB, free: 276 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.3217, allocations: 57.33 kB / 0.5227 GB, free: 208 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.3218, allocations: 156.3 kB / 0.5228 GB, free: 84 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.211e-05/0.3218, allocations: 26.95 kB / 0.5228 GB, free: 52 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.674e-05/0.3219, allocations: 106.8 kB / 0.523 GB, free: 15.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.546e-05/0.3219, allocations: 16.34 kB / 0.523 GB, free: 15.94 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.282e-05/0.322, allocations: 32.14 kB / 0.523 GB, free: 15.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.3221, allocations: 324.4 kB / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.3223, allocations: 35.72 kB / 0.5233 GB, free: 15.58 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.3224, allocations: 49.19 kB / 0.5234 GB, free: 15.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002327/0.3226, allocations: 74.16 kB / 0.5235 GB, free: 15.53 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3226, allocations: 4.906 kB / 0.5235 GB, free: 15.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002975/0.3229, allocations: 122.3 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.323, allocations: 12.47 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.323, allocations: 0 / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.323, allocations: 1.125 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.3231, allocations: 15.17 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3231, allocations: 2.031 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.985e-05/0.3232, allocations: 22 kB / 0.5236 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.3232, allocations: 6.812 kB / 0.5236 GB, free: 15.45 MB / 398.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: 7 ($whenCondition1,change.u,$PRE.change.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 8.675e-05/0.3233, allocations: 119.8 kB / 0.5238 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.204e-05/0.3234, allocations: 14.03 kB / 0.5238 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.665e-05/0.3234, allocations: 12.03 kB / 0.5238 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3234, allocations: 5.875 kB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3234, allocations: 3.938 kB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3234, allocations: 0.75 kB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000507/0.3239, allocations: 395.3 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.324, allocations: 0.75 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.555e-05/0.324, allocations: 11.69 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.3241, allocations: 1.188 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.3241, allocations: 5.766 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.3241, allocations: 3.938 kB / 0.5242 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3241, allocations: 5.781 kB / 0.5242 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004568/0.3246, allocations: 246.7 kB / 0.5244 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.829e-05/0.3246, allocations: 92.03 kB / 0.5245 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.1e-05/0.3246, allocations: 1.828 kB / 0.5245 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.3248, allocations: 17.59 kB / 0.5245 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.803e-05/0.3249, allocations: 15.25 kB / 0.5245 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.804e-06/0.3249, allocations: 2.469 kB / 0.5245 GB, free: 14.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.927e-05/0.325, allocations: 114.3 kB / 0.5247 GB, free: 14.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.325, allocations: 1.469 kB / 0.5247 GB, free: 14.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002368/0.3252, allocations: 13.91 kB / 0.5247 GB, free: 14.59 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,change.u) * Number of discrete states: 1 (change.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.0006937/0.3259, allocations: 0.7938 MB / 0.5254 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002912/0.3262, allocations: 80.78 kB / 0.5255 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3262, allocations: 1.844 kB / 0.5255 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001381/0.3264, allocations: 40.88 kB / 0.5256 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.3267, allocations: 24.59 kB / 0.5256 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/0.3287, allocations: 1.646 MB / 0.5272 GB, free: 12.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.3289, allocations: 0.6998 MB / 0.5279 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.211e-05/0.329, allocations: 16.45 kB / 0.5279 GB, free: 11.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.231e-05/0.329, allocations: 31.89 kB / 0.5279 GB, free: 11.77 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.329, allocations: 0 / 0.5279 GB, free: 11.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02072/0.3498, allocations: 2.636 MB / 0.5305 GB, free: 10.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.721/8.07, allocations: 10.17 kB / 0.5305 GB, free: 10.67 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches