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.001782/0.001782, allocations: 109.8 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.00201/0.00201, allocations: 183.1 kB / 18.71 MB, free: 4.34 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.422/1.422, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2361/0.2361, allocations: 44.18 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003034/0.003034, allocations: 59.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.4003, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002783/0.4032, allocations: 1.624 MB / 0.52 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000947/0.4041, allocations: 0.5457 MB / 0.5205 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.075e-05/0.4042, allocations: 9.25 kB / 0.5205 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.4044, allocations: 10.67 kB / 0.5206 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.93e-05/0.4044, allocations: 15.25 kB / 0.5206 GB, free: 1.754 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003649/0.4048, allocations: 91 kB / 0.5207 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001785/0.405, allocations: 111.8 kB / 0.5208 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.4051, allocations: 27.83 kB / 0.5208 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.258e-05/0.4052, allocations: 48.77 kB / 0.5208 GB, free: 1.621 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.271e-05/0.4053, allocations: 50.27 kB / 0.5209 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.465e-05/0.4053, allocations: 8.938 kB / 0.5209 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.129e-05/0.4054, allocations: 8.062 kB / 0.5209 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.107e-05/0.4054, allocations: 18.47 kB / 0.5209 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.826e-05/0.4055, allocations: 42.05 kB / 0.521 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000197/0.4057, allocations: 89.27 kB / 0.521 GB, free: 1.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.4057, allocations: 0 / 0.521 GB, free: 1.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4057, allocations: 0 / 0.521 GB, free: 1.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.4057, allocations: 5.094 kB / 0.521 GB, free: 1.508 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.000626/0.4063, allocations: 412.1 kB / 0.5214 GB, free: 1.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.4064, allocations: 13.64 kB / 0.5215 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.64e-05/0.4064, allocations: 38.12 kB / 0.5215 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.4065, allocations: 15.36 kB / 0.5215 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002565/0.4067, allocations: 208 kB / 0.5217 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.4068, allocations: 8.406 kB / 0.5217 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.651e-05/0.4068, allocations: 6.062 kB / 0.5217 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.4071, allocations: 101.8 kB / 0.5218 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.4071, allocations: 3.938 kB / 0.5218 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.4071, allocations: 6.25 kB / 0.5218 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.4071, allocations: 5.266 kB / 0.5218 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.4073, allocations: 50.53 kB / 0.5219 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006366/0.4079, allocations: 386.3 kB / 0.5222 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000338/0.4083, allocations: 100 kB / 0.5223 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.4084, allocations: 33.61 kB / 0.5224 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.4084, allocations: 9.469 kB / 0.5224 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.4087, allocations: 102.1 kB / 0.5225 GB, free: 336 kB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.4087, allocations: 3.938 kB / 0.5225 GB, free: 332 kB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004527/0.4092, allocations: 145.2 kB / 0.5226 GB, free: 268 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.4092, allocations: 53.11 kB / 0.5227 GB, free: 204 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.4093, allocations: 151.4 kB / 0.5228 GB, free: 84 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.4093, allocations: 31.47 kB / 0.5228 GB, free: 48 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.03e-05/0.4094, allocations: 99.12 kB / 0.5229 GB, free: 15.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.4095, allocations: 24.97 kB / 0.523 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.998e-05/0.4095, allocations: 27.11 kB / 0.523 GB, free: 15.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.4097, allocations: 320.3 kB / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.4098, allocations: 35.58 kB / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.41, allocations: 60.47 kB / 0.5234 GB, free: 15.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002237/0.4102, allocations: 71.62 kB / 0.5235 GB, free: 15.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.4102, allocations: 0 / 0.5235 GB, free: 15.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003132/0.4105, allocations: 122.8 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.4105, allocations: 9.438 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.4106, allocations: 1.062 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.4106, allocations: 1.125 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.944e-05/0.4107, allocations: 18.75 kB / 0.5236 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.4107, allocations: 4.844 kB / 0.5236 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.981e-05/0.4108, allocations: 26.33 kB / 0.5236 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.4108, allocations: 3.219 kB / 0.5236 GB, free: 15.44 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 0.0001152/0.4109, allocations: 122.7 kB / 0.5237 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.105e-05/0.411, allocations: 12.14 kB / 0.5238 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.11e-05/0.411, allocations: 13.03 kB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.411, allocations: 1.188 kB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.411, allocations: 1.094 kB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.411, allocations: 0.7031 kB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005871/0.4116, allocations: 400.2 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4116, allocations: 0 / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.859e-05/0.4117, allocations: 12.77 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.4117, allocations: 0 / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.4118, allocations: 1.641 kB / 0.5242 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.4118, allocations: 4 kB / 0.5242 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4118, allocations: 1.953 kB / 0.5242 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004599/0.4122, allocations: 253.4 kB / 0.5244 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.416e-05/0.4123, allocations: 93.64 kB / 0.5245 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.4123, allocations: 3.5 kB / 0.5245 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.4125, allocations: 14.8 kB / 0.5245 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.935e-05/0.4125, allocations: 16.84 kB / 0.5245 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.4125, allocations: 5.375 kB / 0.5245 GB, free: 14.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.753e-05/0.4126, allocations: 111.8 kB / 0.5247 GB, free: 14.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4126, allocations: 0 / 0.5247 GB, free: 14.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00022/0.4129, allocations: 17.78 kB / 0.5247 GB, free: 14.58 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.0007878/0.4137, allocations: 0.7914 MB / 0.5254 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002846/0.414, allocations: 76.47 kB / 0.5255 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.414, allocations: 0 / 0.5255 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001494/0.4141, allocations: 50.33 kB / 0.5256 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.4144, allocations: 23.41 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.002089/0.4165, allocations: 1.651 MB / 0.5272 GB, free: 12.49 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003426/0.4169, allocations: 0.7007 MB / 0.5279 GB, free: 11.79 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.232e-05/0.4169, allocations: 8.641 kB / 0.5279 GB, free: 11.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.703e-05/0.417, allocations: 31.38 kB / 0.5279 GB, free: 11.77 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.417, allocations: 1.375 kB / 0.5279 GB, free: 11.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.4441, allocations: 2.639 MB / 0.5305 GB, free: 10.69 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.829/8.273, allocations: 11.55 kB / 0.5305 GB, free: 10.68 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