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.00167/0.00167, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001955/0.001955, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 227.4 MB / 247.5 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2238/0.2238, allocations: 46.12 MB / 344.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002168, allocations: 82.48 kB / 418.3 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1177, allocations: 62.45 MB / 480.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007846/0.1256, allocations: 5.768 MB / 486.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004401/0.13, allocations: 2.364 MB / 488.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008507/0.1309, allocations: 39.75 kB / 488.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005438/0.1315, allocations: 222.1 kB / 489.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004587/0.132, allocations: 182.2 kB / 489.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.1331, allocations: 482.8 kB / 489.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001252/0.1344, allocations: 1.099 MB / 490.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000869/0.1353, allocations: 0.6068 MB / 491.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005247/0.1358, allocations: 370.6 kB / 491.9 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004463/0.1363, allocations: 390.1 kB / 492.2 MB, free: 9.699 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001348/0.1364, allocations: 99.94 kB / 492.3 MB, free: 9.602 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002862/0.1367, allocations: 159.9 kB / 492.5 MB, free: 9.445 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002237/0.1369, allocations: 215.3 kB / 492.7 MB, free: 9.234 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004436/0.1374, allocations: 465.7 kB / 493.2 MB, free: 8.777 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001309/0.1387, allocations: 1.242 MB / 494.4 MB, free: 7.531 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1387, allocations: 0 / 494.4 MB, free: 7.531 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1387, allocations: 0 / 494.4 MB, free: 7.531 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.1387, allocations: 7.938 kB / 494.4 MB, free: 7.523 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.001642/0.1404, allocations: 1.13 MB / 495.5 MB, free: 6.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.1404, allocations: 12.03 kB / 495.6 MB, free: 6.328 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000282/0.1407, allocations: 111.7 kB / 495.7 MB, free: 6.219 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000792/0.1415, allocations: 0.567 MB / 496.2 MB, free: 5.609 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.72e-05/0.1416, allocations: 73.98 kB / 496.3 MB, free: 5.539 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.1418, allocations: 95.91 kB / 496.4 MB, free: 5.445 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.1433, allocations: 0.8892 MB / 497.3 MB, free: 4.492 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.556e-05/0.1433, allocations: 7.906 kB / 497.3 MB, free: 4.484 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.8e-05/0.1434, allocations: 36 kB / 497.3 MB, free: 4.449 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.205e-05/0.1434, allocations: 24 kB / 497.4 MB, free: 4.426 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.1444, allocations: 0.5229 MB / 497.9 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004085/0.1485, allocations: 3.639 MB / 0.4898 GB, free: 108 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006191/0.1492, allocations: 234.1 kB / 0.49 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000191/0.1494, allocations: 101.3 kB / 0.4901 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003538/0.1497, allocations: 263.3 kB / 0.4903 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.1498, allocations: 30.56 kB / 0.4904 GB, free: 15.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.695e-06/0.1498, allocations: 0 / 0.4904 GB, free: 15.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.0026/0.1524, allocations: 1.283 MB / 0.4916 GB, free: 14.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.1524, allocations: 59.34 kB / 0.4917 GB, free: 13.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004698/0.1529, allocations: 405.8 kB / 0.4921 GB, free: 13.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.153, allocations: 29.7 kB / 0.4921 GB, free: 13.53 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003496/0.1533, allocations: 470.1 kB / 0.4925 GB, free: 13.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.1534, allocations: 146 kB / 0.4927 GB, free: 12.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000144/0.1536, allocations: 102.2 kB / 0.4928 GB, free: 12.81 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002066/0.1538, allocations: 362.8 kB / 0.4931 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.154, allocations: 109.1 kB / 0.4932 GB, free: 12.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004204/0.1545, allocations: 302.3 kB / 0.4935 GB, free: 11.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000642/0.1551, allocations: 471.4 kB / 0.494 GB, free: 11.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1551, allocations: 0 / 0.494 GB, free: 11.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008608/0.156, allocations: 0.5088 MB / 0.4945 GB, free: 10.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.156, allocations: 10.34 kB / 0.4945 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.156, allocations: 11.94 kB / 0.4945 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002287/0.1563, allocations: 45.62 kB / 0.4945 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003765/0.1567, allocations: 123.8 kB / 0.4946 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004657/0.1571, allocations: 0.5562 MB / 0.4952 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.1574, allocations: 20 kB / 0.4952 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.656e-05/0.1574, allocations: 24 kB / 0.4952 GB, free: 10.08 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.0003491/0.1578, allocations: 233.6 kB / 0.4954 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.782e-05/0.1578, allocations: 59.28 kB / 0.4955 GB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000672/0.1585, allocations: 330.9 kB / 0.4958 GB, free: 9.449 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1585, allocations: 4 kB / 0.4958 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1586, allocations: 0 / 0.4958 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.1586, allocations: 0 / 0.4958 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.1602, allocations: 1.055 MB / 0.4969 GB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.1602, allocations: 4.031 kB / 0.4969 GB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003479/0.1606, allocations: 79.89 kB / 0.4969 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001501/0.1607, allocations: 40.94 kB / 0.497 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.681e-05/0.1608, allocations: 11.98 kB / 0.497 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000453/0.1612, allocations: 0.5407 MB / 0.4975 GB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.1613, allocations: 4.031 kB / 0.4975 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008261/0.1621, allocations: 0.5596 MB / 0.4981 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.1622, allocations: 124.4 kB / 0.4982 GB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.428e-05/0.1623, allocations: 12 kB / 0.4982 GB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.1624, allocations: 12 kB / 0.4982 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.276e-05/0.1625, allocations: 19.91 kB / 0.4982 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/0.1625, allocations: 16 kB / 0.4982 GB, free: 6.812 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003141/0.1629, allocations: 271.1 kB / 0.4985 GB, free: 6.551 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1629, allocations: 3.938 kB / 0.4985 GB, free: 6.547 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005585/0.1634, allocations: 124 kB / 0.4986 GB, free: 6.426 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.0001976/0.1636, allocations: 127.2 kB / 0.4987 GB, free: 6.289 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007654/0.1644, allocations: 345 kB / 0.4991 GB, free: 5.953 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1644, allocations: 0 / 0.4991 GB, free: 5.953 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003367/0.1648, allocations: 148.1 kB / 0.4992 GB, free: 5.809 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005371/0.1653, allocations: 80.59 kB / 0.4993 GB, free: 5.734 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.1681, allocations: 1.673 MB / 0.5009 GB, free: 4.008 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007013/0.1688, allocations: 0.9599 MB / 0.5019 GB, free: 3.023 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.169, allocations: 47.42 kB / 0.5019 GB, free: 2.977 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.169, allocations: 0 / 0.5019 GB, free: 2.977 MB / 382.1 MB Notification: Performance of Templates: time 0.205/0.374, allocations: 11.14 MB / 0.5128 GB, free: 38.12 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