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.001214/0.001214, allocations: 105.5 kB / 16.4 MB, free: 6.445 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.001304/0.001304, allocations: 192.1 kB / 17.34 MB, free: 5.719 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.36/1.36, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2011/0.2011, allocations: 43.52 MB / 314.1 MB, free: 456 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.001438/0.001438, allocations: 69.47 kB / 441.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1015, allocations: 57.8 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003099/0.1047, allocations: 1.613 MB / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.1059, allocations: 0.6008 MB / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.106, allocations: 0 / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001338/0.1061, allocations: 19.86 kB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.222e-05/0.1062, allocations: 7.875 kB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003835/0.1066, allocations: 95.75 kB / 0.4897 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001727/0.1068, allocations: 119.7 kB / 0.4898 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.1069, allocations: 35.88 kB / 0.4898 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.218e-05/0.107, allocations: 47.83 kB / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.313e-05/0.1071, allocations: 35.83 kB / 0.4899 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.1072, allocations: 8 kB / 0.4899 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.571e-05/0.1072, allocations: 8 kB / 0.4899 GB, free: 9.695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.741e-05/0.1072, allocations: 27.92 kB / 0.4899 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.584e-05/0.1073, allocations: 39.73 kB / 0.49 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001498/0.1074, allocations: 87.64 kB / 0.4901 GB, free: 9.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.1074, allocations: 4 kB / 0.4901 GB, free: 9.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1074, allocations: 0 / 0.4901 GB, free: 9.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.1075, allocations: 0 / 0.4901 GB, free: 9.539 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.0006732/0.1081, allocations: 415.1 kB / 0.4905 GB, free: 9.086 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.1082, allocations: 15.89 kB / 0.4905 GB, free: 9.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.564e-05/0.1082, allocations: 42.73 kB / 0.4905 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.068e-05/0.1083, allocations: 8.844 kB / 0.4905 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.1086, allocations: 200.1 kB / 0.4907 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.1086, allocations: 12.36 kB / 0.4907 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.635e-05/0.1086, allocations: 4.375 kB / 0.4907 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000278/0.1089, allocations: 113.4 kB / 0.4908 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1089, allocations: 0 / 0.4908 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.109, allocations: 4 kB / 0.4908 GB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.109, allocations: 0 / 0.4908 GB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001665/0.1091, allocations: 55.91 kB / 0.4909 GB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008053/0.11, allocations: 392.4 kB / 0.4913 GB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000388/0.1104, allocations: 102.5 kB / 0.4914 GB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.1105, allocations: 40.86 kB / 0.4914 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.1105, allocations: 0 / 0.4914 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002404/0.1107, allocations: 99.34 kB / 0.4915 GB, free: 7.895 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.1107, allocations: 0 / 0.4915 GB, free: 7.895 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004645/0.1112, allocations: 149.4 kB / 0.4916 GB, free: 7.742 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.1113, allocations: 51.41 kB / 0.4917 GB, free: 7.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.1114, allocations: 153.8 kB / 0.4918 GB, free: 7.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.1114, allocations: 29.7 kB / 0.4919 GB, free: 7.484 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.1116, allocations: 100.1 kB / 0.492 GB, free: 7.383 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.1116, allocations: 23.78 kB / 0.492 GB, free: 7.359 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.493e-05/0.1116, allocations: 29.7 kB / 0.492 GB, free: 7.324 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.1118, allocations: 322.8 kB / 0.4923 GB, free: 7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.1119, allocations: 35.98 kB / 0.4924 GB, free: 6.965 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.112, allocations: 49.69 kB / 0.4924 GB, free: 6.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/0.1122, allocations: 81.61 kB / 0.4925 GB, free: 6.824 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1122, allocations: 0 / 0.4925 GB, free: 6.824 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002655/0.1125, allocations: 117.5 kB / 0.4926 GB, free: 6.703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.1125, allocations: 8.219 kB / 0.4926 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.1125, allocations: 0 / 0.4926 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.1125, allocations: 4 kB / 0.4926 GB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.744e-05/0.1127, allocations: 23.95 kB / 0.4926 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.1127, allocations: 0 / 0.4926 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.82e-05/0.1128, allocations: 15.98 kB / 0.4926 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.1128, allocations: 8 kB / 0.4927 GB, free: 6.645 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.642e-05/0.1129, allocations: 121.7 kB / 0.4928 GB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.072e-05/0.1129, allocations: 15.75 kB / 0.4928 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.334e-05/0.1129, allocations: 20.7 kB / 0.4928 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1129, allocations: 0 / 0.4928 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.113, allocations: 0 / 0.4928 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.113, allocations: 4 kB / 0.4928 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004913/0.1135, allocations: 386.4 kB / 0.4932 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1135, allocations: 0 / 0.4932 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.143e-05/0.1136, allocations: 27.92 kB / 0.4932 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.1136, allocations: 3.938 kB / 0.4932 GB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.1136, allocations: 0 / 0.4932 GB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.1136, allocations: 0 / 0.4932 GB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.1136, allocations: 3.984 kB / 0.4932 GB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005282/0.1141, allocations: 247.3 kB / 0.4934 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.196e-05/0.1142, allocations: 85.05 kB / 0.4935 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.904e-05/0.1142, allocations: 0 / 0.4935 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.1143, allocations: 19.97 kB / 0.4935 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.188e-05/0.1144, allocations: 11.98 kB / 0.4936 GB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.1144, allocations: 8.062 kB / 0.4936 GB, free: 5.605 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.733e-05/0.1145, allocations: 115.9 kB / 0.4937 GB, free: 5.492 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1145, allocations: 4 kB / 0.4937 GB, free: 5.488 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002314/0.1147, allocations: 15.91 kB / 0.4937 GB, free: 5.473 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.0007843/0.1155, allocations: 0.7787 MB / 0.4945 GB, free: 4.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000273/0.1158, allocations: 91.92 kB / 0.4945 GB, free: 4.578 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1158, allocations: 0 / 0.4945 GB, free: 4.578 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.116, allocations: 40.53 kB / 0.4946 GB, free: 4.539 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.1163, allocations: 18.83 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.002016/0.1183, 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.0003204/0.1186, allocations: 0.6963 MB / 0.4969 GB, free: 2.066 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.878e-05/0.1187, allocations: 8.547 kB / 0.4969 GB, free: 2.055 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.211e-05/0.1188, allocations: 31.42 kB / 0.4969 GB, free: 2.023 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1188, allocations: 0 / 0.4969 GB, free: 2.023 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02018/0.139, allocations: 2.696 MB / 0.4996 GB, free: 15.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.63/7.769, allocations: 11.86 kB / 0.4996 GB, free: 15.31 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,integrator.y Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,change.pre_u_start,change.u,change.y,const1.k,const1.y,constMinus1.k,constMinus1.y,der(integrator.y),integrator.initType,integrator.k,integrator.limitsAtInit,integrator.outMax,integrator.outMin,integrator.reset,integrator.strict,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,switch.u1,switch.u2,switch.u3,switch.y,time