Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001172/0.001172, allocations: 109.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 246.9 MB, free: 8.863 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2076/0.2076, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 80.72 kB / 417.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.119, allocations: 62.43 MB / 479.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006837/0.1259, allocations: 5.763 MB / 485.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0041/0.13, allocations: 2.329 MB / 488 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007241/0.1308, allocations: 39.81 kB / 488 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000477/0.1313, allocations: 174.6 kB / 488.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003613/0.1317, allocations: 146.8 kB / 488.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009493/0.1327, allocations: 403.3 kB / 488.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001013/0.1337, allocations: 1.04 MB / 489.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000764/0.1345, allocations: 0.5595 MB / 490.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000444/0.1349, allocations: 322.6 kB / 490.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003451/0.1353, allocations: 366 kB / 491 MB, free: 10.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.383e-05/0.1354, allocations: 56 kB / 491.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002579/0.1356, allocations: 115.9 kB / 491.2 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001715/0.1358, allocations: 175.3 kB / 491.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003714/0.1362, allocations: 429.6 kB / 491.8 MB, free: 9.742 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008084/0.137, allocations: 0.9549 MB / 492.7 MB, free: 8.785 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.137, allocations: 4 kB / 492.7 MB, free: 8.781 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.137, allocations: 0 / 492.7 MB, free: 8.781 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.587e-05/0.1371, allocations: 4 kB / 492.8 MB, free: 8.777 MB / 366.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.001469/0.1385, allocations: 1.134 MB / 493.9 MB, free: 7.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.1386, allocations: 12.88 kB / 493.9 MB, free: 7.578 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002543/0.1389, allocations: 111.7 kB / 494 MB, free: 7.469 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007055/0.1396, allocations: 0.567 MB / 494.6 MB, free: 6.859 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.865e-05/0.1396, allocations: 66 kB / 494.6 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.1397, allocations: 99.89 kB / 494.7 MB, free: 6.699 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.1411, allocations: 0.8853 MB / 495.6 MB, free: 5.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.505e-05/0.1412, allocations: 15.88 kB / 495.6 MB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.121e-05/0.1413, allocations: 36 kB / 495.7 MB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.84e-05/0.1413, allocations: 24 kB / 495.7 MB, free: 5.676 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009452/0.1422, allocations: 0.5229 MB / 496.2 MB, free: 5.152 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003493/0.1457, allocations: 3.639 MB / 499.9 MB, free: 1.355 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005362/0.1463, allocations: 236.3 kB / 0.4884 GB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.1465, allocations: 101.3 kB / 0.4885 GB, free: 1.012 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002823/0.1468, allocations: 251.3 kB / 0.4887 GB, free: 0.7109 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.1468, allocations: 38.55 kB / 0.4887 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.114e-06/0.1468, allocations: 0 / 0.4887 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002387/0.1492, allocations: 1.285 MB / 0.49 GB, free: 15.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.1493, allocations: 63.34 kB / 0.4901 GB, free: 15.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000395/0.1497, allocations: 401.8 kB / 0.4904 GB, free: 14.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.1497, allocations: 29.7 kB / 0.4905 GB, free: 14.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002657/0.15, allocations: 474 kB / 0.4909 GB, free: 14.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.019e-05/0.1501, allocations: 138 kB / 0.491 GB, free: 14.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.1502, allocations: 102.2 kB / 0.4911 GB, free: 14.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1503, allocations: 362.8 kB / 0.4915 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.1505, allocations: 113.1 kB / 0.4916 GB, free: 13.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003579/0.1509, allocations: 302.3 kB / 0.4919 GB, free: 13.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005343/0.1514, allocations: 463.4 kB / 0.4923 GB, free: 12.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1514, allocations: 7.938 kB / 0.4923 GB, free: 12.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007321/0.1522, allocations: 0.5091 MB / 0.4928 GB, free: 12.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.1522, allocations: 10.81 kB / 0.4928 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.1522, allocations: 4 kB / 0.4929 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001931/0.1524, allocations: 40.84 kB / 0.4929 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003698/0.1528, allocations: 127.8 kB / 0.493 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003865/0.1532, allocations: 0.5567 MB / 0.4936 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.1534, allocations: 20 kB / 0.4936 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.345e-05/0.1535, allocations: 27.98 kB / 0.4936 GB, free: 11.34 MB / 382.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.0003019/0.1538, allocations: 229.6 kB / 0.4938 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.44e-05/0.1539, allocations: 59.27 kB / 0.4939 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005913/0.1545, allocations: 331 kB / 0.4942 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.1545, allocations: 4 kB / 0.4942 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.1545, allocations: 0 / 0.4942 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.1545, allocations: 3.984 kB / 0.4942 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00149/0.156, allocations: 1.058 MB / 0.4952 GB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.156, allocations: 0 / 0.4952 GB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003415/0.1564, allocations: 79.89 kB / 0.4953 GB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001332/0.1565, allocations: 36.78 kB / 0.4953 GB, free: 9.449 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.1565, allocations: 8.047 kB / 0.4954 GB, free: 9.441 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003397/0.1569, allocations: 0.5525 MB / 0.4959 GB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1569, allocations: 4.031 kB / 0.4959 GB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007628/0.1577, allocations: 0.5594 MB / 0.4964 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.354e-05/0.1578, allocations: 120.5 kB / 0.4966 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.171e-05/0.1578, allocations: 12 kB / 0.4966 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.158, allocations: 8 kB / 0.4966 GB, free: 8.105 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.754e-05/0.158, allocations: 23.89 kB / 0.4966 GB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.1581, allocations: 20 kB / 0.4966 GB, free: 8.062 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000285/0.1584, allocations: 275.1 kB / 0.4969 GB, free: 7.801 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1584, allocations: 0 / 0.4969 GB, free: 7.801 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005489/0.1589, allocations: 124 kB / 0.497 GB, free: 7.68 MB / 382.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.0001682/0.1591, allocations: 111.3 kB / 0.4971 GB, free: 7.559 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006109/0.1597, allocations: 328.2 kB / 0.4974 GB, free: 7.238 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1597, allocations: 0 / 0.4974 GB, free: 7.238 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002503/0.16, allocations: 149.2 kB / 0.4976 GB, free: 7.094 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005199/0.1605, allocations: 76.58 kB / 0.4976 GB, free: 7.023 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/0.1631, allocations: 2.052 MB / 0.4996 GB, free: 4.918 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004982/0.1636, allocations: 0.9561 MB / 0.5006 GB, free: 3.938 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.1638, allocations: 43.44 kB / 0.5006 GB, free: 3.895 MB / 382.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1638, allocations: 0 / 0.5006 GB, free: 3.895 MB / 382.1 MB Notification: Performance of Templates: time 0.2085/0.3723, allocations: 11.16 MB / 0.5115 GB, free: 39.84 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches