Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs") translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 92.84 kB / 18 MB, free: 5.602 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.001271/0.001271, allocations: 177.2 kB / 18.91 MB, free: 4.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 223.3 MB / 243 MB, free: 15.93 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1873/0.1873, allocations: 44.26 MB / 338.3 MB, free: 2.609 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002981/0.0002981, allocations: 12.23 kB / 411 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0993/0.09961, allocations: 61.93 MB / 472.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006047/0.1057, allocations: 5.256 MB / 478.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003896/0.1096, allocations: 2.22 MB / 480.4 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009475/0.1106, allocations: 39.75 kB / 480.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005906/0.1112, allocations: 178.7 kB / 480.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006796/0.1119, allocations: 150.7 kB / 480.7 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001151/0.1131, allocations: 399.3 kB / 481.1 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001383/0.1145, allocations: 1.04 MB / 482.2 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008544/0.1153, allocations: 0.5439 MB / 482.7 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004199/0.1158, allocations: 266.7 kB / 483 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004153/0.1162, allocations: 302.1 kB / 483.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.682e-05/0.1163, allocations: 36 kB / 483.3 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000235/0.1166, allocations: 91.91 kB / 483.4 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001577/0.1167, allocations: 143.3 kB / 483.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003713/0.1171, allocations: 411.4 kB / 483.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008556/0.118, allocations: 0.9234 MB / 484.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.118, allocations: 7.938 kB / 484.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.118, allocations: 0 / 484.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.567e-05/0.118, allocations: 0 / 484.9 MB, free: 1.281 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001488/0.1195, allocations: 0.963 MB / 485.8 MB, free: 272 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.1196, allocations: 12.03 kB / 485.8 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.1197, allocations: 99.72 kB / 485.9 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008241/0.1206, allocations: 0.567 MB / 486.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.224e-05/0.1206, allocations: 66 kB / 486.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/0.1208, allocations: 99.91 kB / 486.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001636/0.1224, allocations: 0.8853 MB / 487.6 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.233e-05/0.1225, allocations: 7.906 kB / 487.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.587e-05/0.1226, allocations: 36 kB / 487.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.164e-05/0.1226, allocations: 24 kB / 487.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.1237, allocations: 0.5346 MB / 488.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003995/0.1277, allocations: 3.647 MB / 491.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000591/0.1284, allocations: 230.6 kB / 492 MB, free: 9.797 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001771/0.1286, allocations: 104.8 kB / 492.1 MB, free: 9.691 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002426/0.1288, allocations: 247.3 kB / 492.4 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.1289, allocations: 30.56 kB / 492.4 MB, free: 9.355 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.104e-06/0.1289, allocations: 0 / 492.4 MB, free: 9.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002472/0.1313, allocations: 1.311 MB / 493.7 MB, free: 7.945 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.1314, allocations: 63.28 kB / 493.8 MB, free: 7.871 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004868/0.1319, allocations: 405.8 kB / 494.2 MB, free: 7.469 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.1319, allocations: 29.7 kB / 494.2 MB, free: 7.434 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003134/0.1322, allocations: 470.1 kB / 494.7 MB, free: 6.965 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.1324, allocations: 138 kB / 494.8 MB, free: 6.828 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.451e-05/0.1324, allocations: 53.62 kB / 494.9 MB, free: 6.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1326, allocations: 362.8 kB / 495.2 MB, free: 6.406 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002308/0.1328, allocations: 117.1 kB / 495.3 MB, free: 6.289 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00035/0.1332, allocations: 306.2 kB / 495.6 MB, free: 5.906 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006227/0.1338, allocations: 464.7 kB / 496.1 MB, free: 5.367 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.1338, allocations: 4 kB / 496.1 MB, free: 5.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008335/0.1347, allocations: 0.5093 MB / 496.6 MB, free: 4.844 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.1347, allocations: 8.125 kB / 496.6 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.1347, allocations: 12 kB / 496.6 MB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002131/0.135, allocations: 40.84 kB / 496.6 MB, free: 4.781 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003695/0.1353, allocations: 123.8 kB / 496.8 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003769/0.1357, allocations: 0.564 MB / 497.3 MB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002303/0.136, allocations: 20 kB / 497.4 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.111e-05/0.136, allocations: 28.06 kB / 497.4 MB, free: 4.023 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003144/0.1363, allocations: 225.6 kB / 497.6 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.239e-05/0.1364, allocations: 51.38 kB / 497.6 MB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000631/0.137, allocations: 339.2 kB / 498 MB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.1371, allocations: 4 kB / 498 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1371, allocations: 0 / 498 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.1371, allocations: 3.938 kB / 498 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001506/0.1386, allocations: 1.061 MB / 499 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.1386, allocations: 0 / 499 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003507/0.139, allocations: 79.91 kB / 499.1 MB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001324/0.1391, allocations: 36.77 kB / 499.2 MB, free: 2.137 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.1392, allocations: 8 kB / 499.2 MB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003239/0.1395, allocations: 0.5486 MB / 499.7 MB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/0.1395, allocations: 7.969 kB / 499.7 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007608/0.1403, allocations: 0.5669 MB / 0.4886 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.1404, allocations: 112.5 kB / 0.4887 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.313e-05/0.1405, allocations: 8 kB / 0.4887 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.1406, allocations: 8 kB / 0.4887 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.054e-05/0.1407, allocations: 35.91 kB / 0.4887 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.1407, allocations: 19.98 kB / 0.4887 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002711/0.141, allocations: 263.2 kB / 0.489 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.141, allocations: 0 / 0.489 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005323/0.1415, allocations: 135.9 kB / 0.4891 GB, free: 368 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001496/0.1417, allocations: 117.9 kB / 0.4892 GB, free: 244 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006674/0.1424, allocations: 337.2 kB / 0.4896 GB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1424, allocations: 0 / 0.4896 GB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002606/0.1427, allocations: 145.5 kB / 0.4897 GB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005938/0.1433, allocations: 68.28 kB / 0.4898 GB, free: 15.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002942/0.1462, allocations: 2.193 MB / 0.4919 GB, free: 13.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005639/0.1468, allocations: 0.9561 MB / 0.4928 GB, free: 12.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.1469, allocations: 47.42 kB / 0.4929 GB, free: 12.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.924e-06/0.1469, allocations: 0 / 0.4929 GB, free: 12.43 MB / 382.1 MB Notification: Performance of Templates: time 0.01454/0.1615, allocations: 10.99 MB / 0.5036 GB, free: 1.434 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches