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.001442/0.001442, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001841/0.001841, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 247.4 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2112/0.2112, allocations: 46.11 MB / 344.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 80.75 kB / 418.2 MB, free: 19.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1187, allocations: 62.45 MB / 480.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007447/0.1262, allocations: 5.764 MB / 486.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004845/0.1311, allocations: 2.364 MB / 488.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001266/0.1324, allocations: 39.75 kB / 488.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007932/0.1332, allocations: 230 kB / 489.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008435/0.1341, allocations: 182.3 kB / 489.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001448/0.1355, allocations: 474.9 kB / 489.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001532/0.1371, allocations: 1.107 MB / 490.8 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001049/0.1382, allocations: 0.6107 MB / 491.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006135/0.1388, allocations: 366.7 kB / 491.8 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006308/0.1394, allocations: 390.1 kB / 492.2 MB, free: 9.699 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001946/0.1396, allocations: 96 kB / 492.3 MB, free: 9.605 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003794/0.14, allocations: 159.9 kB / 492.4 MB, free: 9.449 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002294/0.1403, allocations: 215.2 kB / 492.6 MB, free: 9.238 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006364/0.1409, allocations: 469.6 kB / 493.1 MB, free: 8.777 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.1422, allocations: 1.246 MB / 494.3 MB, free: 7.527 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.1422, allocations: 0 / 494.3 MB, free: 7.527 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1422, allocations: 4 kB / 494.4 MB, free: 7.523 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.282e-05/0.1423, allocations: 0 / 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.001955/0.1443, allocations: 1.127 MB / 495.5 MB, free: 6.344 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.1443, allocations: 8.031 kB / 495.5 MB, free: 6.336 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003033/0.1446, allocations: 111.7 kB / 495.6 MB, free: 6.227 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000803/0.1455, allocations: 0.567 MB / 496.2 MB, free: 5.617 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.421e-05/0.1455, allocations: 70 kB / 496.2 MB, free: 5.551 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.1457, allocations: 95.91 kB / 496.3 MB, free: 5.457 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.1472, allocations: 0.8853 MB / 497.2 MB, free: 4.508 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.068e-05/0.1472, allocations: 7.906 kB / 497.2 MB, free: 4.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.822e-05/0.1473, allocations: 40 kB / 497.3 MB, free: 4.461 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.349e-05/0.1473, allocations: 24 kB / 497.3 MB, free: 4.438 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.1483, allocations: 0.5307 MB / 497.8 MB, free: 3.906 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003714/0.1521, allocations: 3.643 MB / 0.4897 GB, free: 108 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005905/0.1527, allocations: 226.6 kB / 0.4899 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.1529, allocations: 109.2 kB / 0.49 GB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002964/0.1532, allocations: 247.3 kB / 0.4903 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.1532, allocations: 38.56 kB / 0.4903 GB, free: 15.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.204e-06/0.1532, allocations: 0 / 0.4903 GB, free: 15.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.00254/0.1558, allocations: 1.287 MB / 0.4916 GB, free: 14.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/0.1558, allocations: 59.34 kB / 0.4916 GB, free: 13.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004513/0.1563, allocations: 405.8 kB / 0.492 GB, free: 13.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.1563, allocations: 29.7 kB / 0.492 GB, free: 13.53 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002843/0.1566, allocations: 474.1 kB / 0.4925 GB, free: 13.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.1567, allocations: 138 kB / 0.4926 GB, free: 12.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.1569, allocations: 98.16 kB / 0.4927 GB, free: 12.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.157, allocations: 362.7 kB / 0.493 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.1572, allocations: 113.1 kB / 0.4932 GB, free: 12.35 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003286/0.1576, allocations: 306.2 kB / 0.4934 GB, free: 11.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000568/0.1581, allocations: 467.4 kB / 0.4939 GB, free: 11.42 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.1582, allocations: 4 kB / 0.4939 GB, free: 11.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008114/0.159, allocations: 0.5056 MB / 0.4944 GB, free: 10.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/0.159, allocations: 10.34 kB / 0.4944 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.159, allocations: 12.09 kB / 0.4944 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001976/0.1592, allocations: 36.84 kB / 0.4944 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003759/0.1596, allocations: 127.8 kB / 0.4946 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004013/0.16, allocations: 0.5562 MB / 0.4951 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.1603, allocations: 16 kB / 0.4951 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.307e-05/0.1603, allocations: 28 kB / 0.4952 GB, free: 10.09 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.0002982/0.1606, allocations: 233.7 kB / 0.4954 GB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.97e-05/0.1607, allocations: 55.28 kB / 0.4954 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006033/0.1613, allocations: 330.9 kB / 0.4957 GB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.1613, allocations: 4 kB / 0.4957 GB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1614, allocations: 4 kB / 0.4958 GB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1614, allocations: 0 / 0.4958 GB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001493/0.1629, allocations: 1.059 MB / 0.4968 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.1629, allocations: 4 kB / 0.4968 GB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003492/0.1632, allocations: 71.91 kB / 0.4969 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000138/0.1634, allocations: 44.77 kB / 0.4969 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.1634, allocations: 8 kB / 0.4969 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003184/0.1638, allocations: 0.5446 MB / 0.4974 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1638, allocations: 4.031 kB / 0.4974 GB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007361/0.1645, allocations: 0.5674 MB / 0.498 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.1646, allocations: 120.4 kB / 0.4981 GB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.599e-05/0.1647, allocations: 12 kB / 0.4981 GB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.1649, allocations: 8 kB / 0.4981 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.531e-05/0.1649, allocations: 27.91 kB / 0.4982 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.307e-05/0.165, allocations: 12 kB / 0.4982 GB, free: 6.816 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002828/0.1652, allocations: 275.1 kB / 0.4984 GB, free: 6.551 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1653, allocations: 0 / 0.4984 GB, free: 6.551 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005507/0.1658, allocations: 120 kB / 0.4985 GB, free: 6.434 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.0001762/0.166, allocations: 127.2 kB / 0.4987 GB, free: 6.297 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007117/0.1667, allocations: 349.1 kB / 0.499 GB, free: 5.957 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.1667, allocations: 0 / 0.499 GB, free: 5.957 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002846/0.167, allocations: 147.8 kB / 0.4991 GB, free: 5.812 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005389/0.1676, allocations: 68.47 kB / 0.4992 GB, free: 5.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002769/0.1704, allocations: 1.681 MB / 0.5008 GB, free: 4.016 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006352/0.171, allocations: 0.9599 MB / 0.5018 GB, free: 3.031 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.1711, allocations: 43.42 kB / 0.5018 GB, free: 2.988 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1711, allocations: 4 kB / 0.5018 GB, free: 2.984 MB / 382.1 MB Notification: Performance of Templates: time 0.2052/0.3763, allocations: 11.16 MB / 0.5127 GB, free: 38.2 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