Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_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.001321/0.001321, allocations: 111.3 kB / 16.41 MB, free: 6.496 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.001128/0.001128, allocations: 188.1 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.222/1.222, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1841/0.1841, allocations: 43.52 MB / 314.1 MB, free: 472 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 75.89 kB / 441.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.09338, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002478/0.0959, allocations: 1.625 MB / 0.489 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008474/0.09676, allocations: 0.593 MB / 0.4896 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.108e-05/0.09685, allocations: 0 / 0.4896 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001074/0.09697, allocations: 19.81 kB / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.844e-05/0.09703, allocations: 15.86 kB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.09734, allocations: 91.81 kB / 0.4897 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001529/0.0975, allocations: 115.7 kB / 0.4898 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.09762, allocations: 35.88 kB / 0.4898 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.139e-05/0.0977, allocations: 47.83 kB / 0.4899 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.422e-05/0.09777, allocations: 39.84 kB / 0.4899 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.0978, allocations: 8 kB / 0.4899 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.28e-05/0.09782, allocations: 11.94 kB / 0.4899 GB, free: 9.707 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.89e-05/0.09786, allocations: 19.92 kB / 0.4899 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.804e-05/0.09791, allocations: 39.73 kB / 0.49 GB, free: 9.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.09805, allocations: 99.56 kB / 0.4901 GB, free: 9.551 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.09807, allocations: 0 / 0.4901 GB, free: 9.551 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.09807, allocations: 0 / 0.4901 GB, free: 9.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.09808, allocations: 0 / 0.4901 GB, free: 9.551 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.0005799/0.09866, allocations: 415 kB / 0.4905 GB, free: 9.098 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.09871, allocations: 15.89 kB / 0.4905 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.875e-05/0.09875, allocations: 34.75 kB / 0.4905 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.518e-05/0.09879, allocations: 12.89 kB / 0.4905 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/0.09903, allocations: 211.8 kB / 0.4907 GB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.09905, allocations: 8.359 kB / 0.4907 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.269e-05/0.09908, allocations: 8.375 kB / 0.4908 GB, free: 8.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002574/0.09934, allocations: 109.7 kB / 0.4909 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.09936, allocations: 0 / 0.4909 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.09938, allocations: 0 / 0.4909 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.09939, allocations: 4 kB / 0.4909 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001563/0.09955, allocations: 55.89 kB / 0.4909 GB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005949/0.1002, allocations: 380.6 kB / 0.4913 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003199/0.1005, allocations: 110.5 kB / 0.4914 GB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.1006, allocations: 36.81 kB / 0.4914 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.835e-06/0.1006, allocations: 0 / 0.4914 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.1008, allocations: 103.3 kB / 0.4915 GB, free: 7.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.1009, allocations: 4 kB / 0.4915 GB, free: 7.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004289/0.1013, allocations: 145.5 kB / 0.4917 GB, free: 7.754 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.1013, allocations: 51.41 kB / 0.4917 GB, free: 7.691 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.1015, allocations: 153.8 kB / 0.4919 GB, free: 7.531 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.1015, allocations: 25.7 kB / 0.4919 GB, free: 7.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.978e-05/0.1015, allocations: 104.1 kB / 0.492 GB, free: 7.395 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.1016, allocations: 27.92 kB / 0.492 GB, free: 7.367 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.317e-05/0.1016, allocations: 21.72 kB / 0.492 GB, free: 7.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.953e-05/0.1017, allocations: 326.8 kB / 0.4923 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.1018, allocations: 31.97 kB / 0.4924 GB, free: 6.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.102, allocations: 49.69 kB / 0.4924 GB, free: 6.926 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002063/0.1022, allocations: 77.62 kB / 0.4925 GB, free: 6.844 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1022, allocations: 0 / 0.4925 GB, free: 6.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002778/0.1025, allocations: 125.7 kB / 0.4926 GB, free: 6.715 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.1025, allocations: 15.97 kB / 0.4926 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1025, allocations: 0 / 0.4926 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.1025, allocations: 0 / 0.4926 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.858e-05/0.1026, allocations: 15.98 kB / 0.4926 GB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.1026, allocations: 3.938 kB / 0.4926 GB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.485e-05/0.1027, allocations: 23.94 kB / 0.4927 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.1027, allocations: 0 / 0.4927 GB, free: 6.656 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: 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.245e-05/0.1028, allocations: 125.8 kB / 0.4928 GB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.1028, allocations: 11.89 kB / 0.4928 GB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.436e-05/0.1029, allocations: 12.72 kB / 0.4928 GB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1029, allocations: 7.984 kB / 0.4928 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.155e-06/0.1029, allocations: 0 / 0.4928 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1029, allocations: 0 / 0.4928 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004644/0.1034, allocations: 390.4 kB / 0.4932 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1034, allocations: 4 kB / 0.4932 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.199e-05/0.1035, allocations: 11.98 kB / 0.4932 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.1035, allocations: 0 / 0.4932 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/0.1035, allocations: 3.938 kB / 0.4932 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1035, allocations: 4 kB / 0.4932 GB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1035, allocations: 0 / 0.4932 GB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004178/0.1039, allocations: 251.3 kB / 0.4935 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.166e-05/0.104, allocations: 93.02 kB / 0.4935 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.104, allocations: 0 / 0.4935 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.1042, allocations: 24.05 kB / 0.4936 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.365e-05/0.1042, allocations: 15.97 kB / 0.4936 GB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.1042, allocations: 7.984 kB / 0.4936 GB, free: 5.609 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.457e-05/0.1043, allocations: 112 kB / 0.4937 GB, free: 5.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1043, allocations: 0 / 0.4937 GB, free: 5.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000229/0.1045, allocations: 19.94 kB / 0.4937 GB, free: 5.48 MB / 382.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.0006252/0.1052, allocations: 0.7754 MB / 0.4945 GB, free: 4.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002762/0.1054, allocations: 91.94 kB / 0.4946 GB, free: 4.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1055, allocations: 0 / 0.4946 GB, free: 4.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001289/0.1056, allocations: 43.91 kB / 0.4946 GB, free: 4.547 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.1059, allocations: 30.45 kB / 0.4946 GB, free: 4.523 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001761/0.1077, allocations: 1.647 MB / 0.4962 GB, free: 2.789 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002106/0.1079, allocations: 0.7002 MB / 0.4969 GB, free: 2.062 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.46e-05/0.1079, allocations: 12.55 kB / 0.4969 GB, free: 2.047 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.423e-05/0.108, allocations: 27.44 kB / 0.497 GB, free: 2.02 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.108, allocations: 0 / 0.497 GB, free: 2.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01736/0.1254, allocations: 2.63 MB / 0.4995 GB, free: 15.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.33/7.455, allocations: 7.797 kB / 0.4995 GB, free: 15.38 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches