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.001407/0.001408, allocations: 107.9 kB / 16.41 MB, free: 6.457 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.001332/0.001332, allocations: 189.5 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.424/1.424, 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.2387/0.2387, allocations: 43.53 MB / 314.1 MB, free: 448 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.00221/0.00221, allocations: 77.47 kB / 441.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1093, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.00205/0.1114, allocations: 0.817 MB / 499.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002033/0.1116, allocations: 47.83 kB / 500 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.49e-05/0.1117, allocations: 7.938 kB / 500 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.1118, allocations: 3.938 kB / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.04e-05/0.1119, allocations: 3.938 kB / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001111/0.112, allocations: 23.95 kB / 500 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001097/0.1121, allocations: 35.92 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.1122, allocations: 19.98 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.396e-05/0.1122, allocations: 7.938 kB / 0.4883 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.139e-05/0.1123, allocations: 15.92 kB / 0.4884 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.1123, allocations: 4 kB / 0.4884 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.069e-05/0.1123, allocations: 4 kB / 0.4884 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.943e-05/0.1123, allocations: 7.938 kB / 0.4884 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.392e-05/0.1124, allocations: 19.92 kB / 0.4884 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.1125, allocations: 47.7 kB / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1125, allocations: 0 / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1125, allocations: 0 / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.1125, allocations: 0 / 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.0005303/0.1131, allocations: 351.3 kB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.1131, allocations: 15.89 kB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.098e-05/0.1132, allocations: 30.75 kB / 0.4888 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.744e-05/0.1132, allocations: 8.891 kB / 0.4888 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002369/0.1134, allocations: 184.3 kB / 0.489 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.1135, allocations: 4.375 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.846e-05/0.1135, allocations: 4.375 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.1136, allocations: 58.17 kB / 0.4891 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.1136, allocations: 3.938 kB / 0.4891 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.1136, allocations: 4 kB / 0.4891 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.1136, allocations: 4 kB / 0.4891 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.95e-05/0.1137, allocations: 8 kB / 0.4891 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006166/0.1143, allocations: 304.5 kB / 0.4894 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.636e-05/0.1144, allocations: 26.58 kB / 0.4894 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.038e-05/0.1144, allocations: 8.844 kB / 0.4894 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.1144, allocations: 3.938 kB / 0.4894 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.07e-05/0.1145, allocations: 55.47 kB / 0.4895 GB, free: 10 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.462e-06/0.1145, allocations: 0 / 0.4895 GB, free: 10 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001488/0.1147, allocations: 53.64 kB / 0.4895 GB, free: 9.945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.1147, allocations: 55.39 kB / 0.4896 GB, free: 9.879 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.1149, allocations: 113.8 kB / 0.4897 GB, free: 9.758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.1149, allocations: 25.7 kB / 0.4897 GB, free: 9.727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.593e-05/0.1149, allocations: 92.09 kB / 0.4898 GB, free: 9.633 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.375e-05/0.115, allocations: 7.953 kB / 0.4898 GB, free: 9.625 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.576e-05/0.115, allocations: 21.7 kB / 0.4898 GB, free: 9.598 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1152, allocations: 318.8 kB / 0.4901 GB, free: 9.277 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.85e-05/0.1152, allocations: 4 kB / 0.4901 GB, free: 9.273 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.758e-05/0.1152, allocations: 25.7 kB / 0.4901 GB, free: 9.242 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.46e-05/0.1153, allocations: 25.66 kB / 0.4902 GB, free: 9.211 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1153, allocations: 4 kB / 0.4902 GB, free: 9.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.656e-05/0.1154, allocations: 53.64 kB / 0.4902 GB, free: 9.148 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.1154, allocations: 7.938 kB / 0.4902 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1154, allocations: 0 / 0.4902 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.1154, allocations: 0 / 0.4902 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.173e-05/0.1155, allocations: 4 kB / 0.4902 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.1155, allocations: 0 / 0.4902 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.208e-05/0.1155, allocations: 7.938 kB / 0.4902 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.1155, allocations: 4 kB / 0.4902 GB, free: 9.125 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 9.151e-05/0.1156, allocations: 121.8 kB / 0.4904 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.241e-05/0.1156, allocations: 4 kB / 0.4904 GB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.321e-05/0.1157, allocations: 7.906 kB / 0.4904 GB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1157, allocations: 0 / 0.4904 GB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.1157, allocations: 0 / 0.4904 GB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1157, allocations: 3.938 kB / 0.4904 GB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000325/0.116, allocations: 306.4 kB / 0.4907 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.116, allocations: 0 / 0.4907 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.312e-05/0.1161, allocations: 0 / 0.4907 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.1161, allocations: 12.69 kB / 0.4907 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.1161, allocations: 3.938 kB / 0.4907 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1161, allocations: 0 / 0.4907 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1161, allocations: 4 kB / 0.4907 GB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001557/0.1163, allocations: 155.4 kB / 0.4908 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.878e-05/0.1163, allocations: 85.08 kB / 0.4909 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.1163, allocations: 7.938 kB / 0.4909 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.541e-05/0.1164, allocations: 4 kB / 0.4909 GB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.236e-05/0.1164, allocations: 4.062 kB / 0.4909 GB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.1164, allocations: 4 kB / 0.4909 GB, free: 8.309 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.889e-05/0.1165, allocations: 91.27 kB / 0.491 GB, free: 8.219 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1165, allocations: 0 / 0.491 GB, free: 8.219 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002138/0.1167, allocations: 4 kB / 0.491 GB, free: 8.215 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.0004514/0.1172, allocations: 0.6852 MB / 0.4917 GB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.592e-05/0.1173, allocations: 23.88 kB / 0.4917 GB, free: 7.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1173, allocations: 0 / 0.4917 GB, free: 7.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.783e-05/0.1173, allocations: 7.984 kB / 0.4917 GB, free: 7.473 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.1176, allocations: 8 kB / 0.4917 GB, free: 7.465 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.1189, allocations: 1.302 MB / 0.493 GB, free: 6.078 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003243/0.1192, allocations: 0.6872 MB / 0.4937 GB, free: 5.367 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.238e-05/0.1192, allocations: 4 kB / 0.4937 GB, free: 5.363 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.04e-05/0.1193, allocations: 15.42 kB / 0.4937 GB, free: 5.348 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1193, allocations: 0 / 0.4937 GB, free: 5.348 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0276/0.1469, allocations: 1.567 MB / 0.4952 GB, free: 3.777 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.686/7.833, allocations: 12.05 kB / 0.4952 GB, free: 3.766 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) Reference file matches