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.001284/0.001284, allocations: 112.8 kB / 16.4 MB, free: 5.902 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.001277/0.001277, allocations: 195.8 kB / 17.33 MB, free: 5.539 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.261/1.261, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.1859/0.1859, 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.00251/0.00251, allocations: 69.47 kB / 441.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1256, allocations: 57.8 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001867/0.1275, allocations: 0.813 MB / 499.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002019/0.1277, allocations: 55.75 kB / 499.9 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.947e-05/0.1278, allocations: 4 kB / 500 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.1279, allocations: 7.922 kB / 500 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.25e-05/0.128, allocations: 3.938 kB / 500 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001066/0.1281, allocations: 15.98 kB / 500 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.1282, allocations: 35.92 kB / 0.4883 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.1283, allocations: 15.98 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.593e-05/0.1283, allocations: 11.94 kB / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.24e-05/0.1284, allocations: 15.92 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.1284, allocations: 7.984 kB / 0.4883 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.668e-06/0.1284, allocations: 4 kB / 0.4883 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.475e-05/0.1284, allocations: 19.86 kB / 0.4884 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.153e-05/0.1285, allocations: 15.88 kB / 0.4884 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.1286, allocations: 31.84 kB / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1286, allocations: 0 / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1286, allocations: 0 / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.1286, allocations: 0 / 0.4884 GB, free: 11.26 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.0004123/0.129, allocations: 354.8 kB / 0.4887 GB, free: 10.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.1291, allocations: 11.89 kB / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.691e-05/0.1291, allocations: 46.73 kB / 0.4888 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.687e-05/0.1291, allocations: 4.891 kB / 0.4888 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.1293, allocations: 180.3 kB / 0.489 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.1294, allocations: 8.312 kB / 0.489 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.785e-05/0.1294, allocations: 4.375 kB / 0.489 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001095/0.1295, allocations: 50.25 kB / 0.489 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.1295, allocations: 3.938 kB / 0.489 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.1295, allocations: 0 / 0.489 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1295, allocations: 3.938 kB / 0.489 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.157e-05/0.1296, allocations: 23.98 kB / 0.4891 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004433/0.13, allocations: 300.6 kB / 0.4894 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.987e-05/0.1301, allocations: 22.58 kB / 0.4894 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.684e-05/0.1301, allocations: 8.922 kB / 0.4894 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.1301, allocations: 0 / 0.4894 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.553e-05/0.1302, allocations: 55.41 kB / 0.4894 GB, free: 10.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.1302, allocations: 3.938 kB / 0.4894 GB, free: 10.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001273/0.1304, allocations: 53.61 kB / 0.4895 GB, free: 9.965 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.022e-05/0.1304, allocations: 51.41 kB / 0.4895 GB, free: 9.902 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.821e-05/0.1305, allocations: 117.8 kB / 0.4897 GB, free: 9.777 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.1305, allocations: 25.7 kB / 0.4897 GB, free: 9.746 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.97e-05/0.1305, allocations: 92.08 kB / 0.4898 GB, free: 9.652 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.484e-05/0.1306, allocations: 12.03 kB / 0.4898 GB, free: 9.641 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.738e-05/0.1306, allocations: 17.72 kB / 0.4898 GB, free: 9.617 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.692e-05/0.1307, allocations: 322.8 kB / 0.4901 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.561e-05/0.1307, allocations: 4 kB / 0.4901 GB, free: 9.289 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.342e-05/0.1307, allocations: 17.72 kB / 0.4901 GB, free: 9.266 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.456e-05/0.1308, allocations: 25.66 kB / 0.4902 GB, free: 9.234 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1308, allocations: 0 / 0.4902 GB, free: 9.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.412e-05/0.1309, allocations: 65.58 kB / 0.4902 GB, free: 9.164 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.1309, allocations: 4 kB / 0.4902 GB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1309, allocations: 4 kB / 0.4902 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.1309, allocations: 0 / 0.4902 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.009e-05/0.1309, allocations: 7.984 kB / 0.4902 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/0.131, allocations: 0 / 0.4902 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.78e-05/0.131, allocations: 3.938 kB / 0.4902 GB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.561e-06/0.131, allocations: 4 kB / 0.4902 GB, free: 9.141 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 6.427e-05/0.1311, allocations: 113.8 kB / 0.4903 GB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.1311, allocations: 4.031 kB / 0.4903 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.082e-05/0.1311, allocations: 7.906 kB / 0.4904 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.1311, allocations: 0 / 0.4904 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1311, allocations: 4 kB / 0.4904 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.1311, allocations: 7.922 kB / 0.4904 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002462/0.1314, allocations: 306.4 kB / 0.4907 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1314, allocations: 3.938 kB / 0.4907 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.012e-05/0.1314, allocations: 4 kB / 0.4907 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.1314, allocations: 0 / 0.4907 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.1314, allocations: 7.922 kB / 0.4907 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1315, allocations: 4.375 kB / 0.4907 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1315, allocations: 0 / 0.4907 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001216/0.1316, allocations: 151.5 kB / 0.4908 GB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.38e-05/0.1316, allocations: 81.06 kB / 0.4909 GB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.1316, allocations: 7.875 kB / 0.4909 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.383e-05/0.1317, allocations: 4.422 kB / 0.4909 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.468e-05/0.1317, allocations: 7.984 kB / 0.4909 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.1317, allocations: 64 / 0.4909 GB, free: 8.332 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.151e-05/0.1318, allocations: 95.27 kB / 0.491 GB, free: 8.238 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1318, allocations: 0 / 0.491 GB, free: 8.238 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002128/0.132, allocations: 12 kB / 0.491 GB, free: 8.227 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.0003187/0.1323, allocations: 0.6773 MB / 0.4917 GB, free: 7.523 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.335e-05/0.1324, allocations: 27.98 kB / 0.4917 GB, free: 7.496 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.1324, allocations: 0 / 0.4917 GB, free: 7.496 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.82e-05/0.1325, allocations: 8 kB / 0.4917 GB, free: 7.488 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000249/0.1327, allocations: 14.8 kB / 0.4917 GB, free: 7.477 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009067/0.1336, allocations: 1.294 MB / 0.493 GB, free: 6.098 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000191/0.1338, allocations: 0.6846 MB / 0.4937 GB, free: 5.387 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.839e-05/0.1339, allocations: 4 kB / 0.4937 GB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.302e-05/0.1339, allocations: 19.44 kB / 0.4937 GB, free: 5.363 MB / 382.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1339, allocations: 0 / 0.4937 GB, free: 5.363 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01649/0.1504, allocations: 1.556 MB / 0.4952 GB, free: 3.797 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.346/7.496, allocations: 17.02 kB / 0.4952 GB, free: 3.781 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_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_SelfResettingIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/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