Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_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.001121/0.001121, allocations: 103.2 kB / 16.4 MB, free: 6.438 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.001667/0.001667, allocations: 192.1 kB / 17.34 MB, free: 5.715 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.396/1.396, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.2106/0.2106, allocations: 43.52 MB / 314.1 MB, free: 464 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.001434/0.001434, allocations: 73.45 kB / 441.3 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09755/0.099, allocations: 57.78 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002092/0.1011, allocations: 0.821 MB / 499.9 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002205/0.1014, allocations: 47.81 kB / 499.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.663e-05/0.1015, allocations: 7.938 kB / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.1016, allocations: 11.86 kB / 500 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.744e-05/0.1016, allocations: 0 / 500 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001164/0.1017, allocations: 19.92 kB / 500 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.1019, allocations: 39.91 kB / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.102, allocations: 16 kB / 0.4883 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.105e-05/0.102, allocations: 15.92 kB / 0.4883 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.504e-05/0.1021, allocations: 11.94 kB / 0.4883 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.498e-05/0.1021, allocations: 0 / 0.4883 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.192e-05/0.1021, allocations: 4 kB / 0.4884 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.881e-05/0.1022, allocations: 15.91 kB / 0.4884 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.211e-05/0.1022, allocations: 11.94 kB / 0.4884 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000119/0.1023, allocations: 39.84 kB / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.1023, allocations: 3.984 kB / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.1023, allocations: 0 / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1024, allocations: 4 kB / 0.4884 GB, free: 11.23 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.0004659/0.1028, allocations: 347.3 kB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.1029, allocations: 11.89 kB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.184e-05/0.1029, allocations: 38.73 kB / 0.4888 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.276e-05/0.103, allocations: 8.938 kB / 0.4888 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002548/0.1032, allocations: 184.2 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.848e-06/0.1032, allocations: 4.375 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.734e-05/0.1033, allocations: 4.375 kB / 0.489 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001286/0.1034, allocations: 54.25 kB / 0.489 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.1034, allocations: 7.922 kB / 0.4891 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.1034, allocations: 0 / 0.4891 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.1035, allocations: 0 / 0.4891 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.077e-05/0.1035, allocations: 15.98 kB / 0.4891 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005221/0.104, allocations: 296.5 kB / 0.4894 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.658e-05/0.1041, allocations: 26.58 kB / 0.4894 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.876e-05/0.1041, allocations: 8.859 kB / 0.4894 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-06/0.1042, allocations: 4.062 kB / 0.4894 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.309e-05/0.1042, allocations: 51.34 kB / 0.4894 GB, free: 10.01 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.1042, allocations: 0 / 0.4894 GB, free: 10.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001435/0.1044, allocations: 53.59 kB / 0.4895 GB, free: 9.949 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.1044, allocations: 51.41 kB / 0.4895 GB, free: 9.887 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.387e-05/0.1045, allocations: 113.8 kB / 0.4896 GB, free: 9.766 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.1045, allocations: 29.7 kB / 0.4897 GB, free: 9.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.196e-05/0.1046, allocations: 92.12 kB / 0.4898 GB, free: 9.637 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.493e-05/0.1046, allocations: 11.84 kB / 0.4898 GB, free: 9.625 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.161e-05/0.1047, allocations: 13.72 kB / 0.4898 GB, free: 9.605 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1048, allocations: 326.8 kB / 0.4901 GB, free: 9.277 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.716e-05/0.1048, allocations: 7.938 kB / 0.4901 GB, free: 9.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.847e-05/0.1048, allocations: 17.72 kB / 0.4901 GB, free: 9.246 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.191e-05/0.1049, allocations: 29.7 kB / 0.4902 GB, free: 9.211 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1049, allocations: 0 / 0.4902 GB, free: 9.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.359e-05/0.105, allocations: 57.55 kB / 0.4902 GB, free: 9.148 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.105, allocations: 4 kB / 0.4902 GB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.105, allocations: 3.984 kB / 0.4902 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.105, allocations: 7.984 kB / 0.4902 GB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.132e-05/0.1051, allocations: 0 / 0.4902 GB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.1051, allocations: 4 kB / 0.4902 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.334e-05/0.1051, allocations: 7.969 kB / 0.4902 GB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.888e-06/0.1051, allocations: 0 / 0.4902 GB, free: 9.121 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 7.112e-05/0.1052, allocations: 117.8 kB / 0.4903 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.368e-05/0.1052, allocations: 7.906 kB / 0.4904 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.732e-05/0.1052, allocations: 3.906 kB / 0.4904 GB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.1053, allocations: 3.984 kB / 0.4904 GB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.1053, allocations: 336 / 0.4904 GB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.1053, allocations: 7.875 kB / 0.4904 GB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002679/0.1055, allocations: 307 kB / 0.4907 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1056, allocations: 0 / 0.4907 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.65e-05/0.1056, allocations: 7.984 kB / 0.4907 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.1056, allocations: 3.938 kB / 0.4907 GB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.1056, allocations: 7.875 kB / 0.4907 GB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.1056, allocations: 4 kB / 0.4907 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1056, allocations: 0 / 0.4907 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000124/0.1058, allocations: 151.4 kB / 0.4908 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.389e-05/0.1058, allocations: 81.14 kB / 0.4909 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.1058, allocations: 8 kB / 0.4909 GB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.76e-05/0.1059, allocations: 3.984 kB / 0.4909 GB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.674e-05/0.1059, allocations: 4 kB / 0.4909 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.728e-06/0.1059, allocations: 0 / 0.4909 GB, free: 8.309 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.08e-05/0.106, allocations: 91.27 kB / 0.491 GB, free: 8.219 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.106, allocations: 0 / 0.491 GB, free: 8.219 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002245/0.1062, allocations: 8 kB / 0.491 GB, free: 8.211 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: 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.0003578/0.1066, allocations: 0.6812 MB / 0.4917 GB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000104/0.1067, allocations: 23.92 kB / 0.4917 GB, free: 7.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1067, allocations: 0 / 0.4917 GB, free: 7.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.094e-05/0.1067, allocations: 11.94 kB / 0.4917 GB, free: 7.469 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.107, allocations: 10.48 kB / 0.4917 GB, free: 7.461 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009981/0.108, allocations: 1.305 MB / 0.493 GB, free: 6.074 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.1083, allocations: 0.6885 MB / 0.4937 GB, free: 5.359 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.23e-05/0.1083, allocations: 0 / 0.4937 GB, free: 5.359 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.825e-05/0.1083, allocations: 15.44 kB / 0.4937 GB, free: 5.344 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1083, allocations: 0 / 0.4937 GB, free: 5.344 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01786/0.1262, allocations: 1.574 MB / 0.4952 GB, free: 3.762 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.635/7.761, allocations: 20.05 kB / 0.4952 GB, free: 3.742 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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