Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.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 3.2.3+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006213/0.006213, allocations: 102 kB / 15.73 MB, free: 6.051 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.001128/0.001128, allocations: 191.4 kB / 16.67 MB, free: 5.965 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.589/1.589, allocations: 205.1 MB / 222.5 MB, free: 4.5 MB / 174.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.00128/0.00128, allocations: 53.36 kB / 326.5 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1118, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006716/0.1186, allocations: 5.407 MB / 378.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004403/0.123, allocations: 2.123 MB / 380.7 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001206/0.1243, allocations: 39.75 kB / 380.7 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009158/0.1253, allocations: 206.3 kB / 380.9 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009523/0.1263, allocations: 162.5 kB / 381.1 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001593/0.1279, allocations: 395 kB / 381.5 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002185/0.1301, allocations: 1.013 MB / 382.5 MB, free: 7.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001328/0.1314, allocations: 0.6142 MB / 383.1 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006774/0.1321, allocations: 330.9 kB / 383.4 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007071/0.1328, allocations: 362.3 kB / 383.8 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002314/0.1331, allocations: 96 kB / 383.9 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004701/0.1336, allocations: 151.9 kB / 384 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003117/0.1339, allocations: 199.4 kB / 384.2 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007345/0.1346, allocations: 434 kB / 384.6 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001973/0.1366, allocations: 1.176 MB / 385.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.1367, allocations: 0 / 385.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.1367, allocations: 0 / 385.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.54e-05/0.1368, allocations: 0 / 385.8 MB, free: 4.566 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002433/0.1392, allocations: 1.026 MB / 386.8 MB, free: 3.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.597e-05/0.1393, allocations: 12.03 kB / 386.9 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001872/0.1395, allocations: 87.91 kB / 386.9 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009488/0.1404, allocations: 0.5181 MB / 387.5 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.562e-05/0.1405, allocations: 66.38 kB / 387.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/0.1407, allocations: 92.22 kB / 387.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/0.142, allocations: 0.8047 MB / 388.4 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.632e-05/0.1421, allocations: 7.906 kB / 388.4 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.935e-05/0.1421, allocations: 36 kB / 388.5 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.1421, allocations: 20 kB / 388.5 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009439/0.1431, allocations: 0.4957 MB / 389 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003235/0.1463, allocations: 2.856 MB / 391.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005803/0.1469, allocations: 218.7 kB / 392 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.1471, allocations: 104.8 kB / 392.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002593/0.1474, allocations: 255.3 kB / 392.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.1474, allocations: 30.56 kB / 392.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 3.677e-06/0.1475, allocations: 0 / 392.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002477/0.1499, allocations: 1.263 MB / 393.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.15, allocations: 55.41 kB / 393.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003388/0.1503, allocations: 308.4 kB / 394 MB, free: 11.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.1504, allocations: 29.7 kB / 394.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002499/0.1506, allocations: 402.5 kB / 394.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.874e-05/0.1507, allocations: 130.1 kB / 394.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.1509, allocations: 90.19 kB / 394.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.151, allocations: 354.7 kB / 395 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.1512, allocations: 117 kB / 395.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002901/0.1515, allocations: 246.7 kB / 395.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004914/0.152, allocations: 388.7 kB / 395.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.152, allocations: 0 / 395.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007098/0.1527, allocations: 465.4 kB / 396.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.1528, allocations: 12.09 kB / 396.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.1528, allocations: 4 kB / 396.2 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001909/0.153, allocations: 32.84 kB / 396.3 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003411/0.1533, allocations: 111.8 kB / 396.4 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000453/0.1538, allocations: 0.5601 MB / 396.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.154, allocations: 19.98 kB / 397 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.896e-05/0.154, allocations: 20.06 kB / 397 MB, free: 8.766 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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.0002786/0.1543, allocations: 221.6 kB / 397.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.99e-05/0.1544, allocations: 35.62 kB / 397.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005962/0.155, allocations: 330.1 kB / 397.5 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.155, allocations: 0 / 397.5 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.155, allocations: 4 kB / 397.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.155, allocations: 4 kB / 397.6 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.1563, allocations: 1.011 MB / 398.6 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/0.1564, allocations: 0 / 398.6 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003576/0.1567, allocations: 88.05 kB / 398.7 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001324/0.1569, allocations: 28.84 kB / 398.7 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.821e-05/0.1569, allocations: 12 kB / 398.7 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003094/0.1572, allocations: 0.5484 MB / 399.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1572, allocations: 4.031 kB / 399.2 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007574/0.158, allocations: 0.5563 MB / 399.8 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.264e-05/0.1581, allocations: 104.9 kB / 399.9 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.758e-05/0.1581, allocations: 11.98 kB / 399.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.1583, allocations: 15.94 kB / 399.9 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.271e-05/0.1584, allocations: 23.97 kB / 400 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-05/0.1584, allocations: 12 kB / 400 MB, free: 5.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002211/0.1586, allocations: 211 kB / 400.2 MB, free: 5.383 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.964e-06/0.1586, allocations: 0 / 400.2 MB, free: 5.383 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005133/0.1591, allocations: 123.9 kB / 400.3 MB, free: 5.262 MB / 334.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.phi,inertia2b.w,torqueToAngle2b.phi,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.0001793/0.1593, allocations: 119.3 kB / 400.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006258/0.16, allocations: 303.6 kB / 400.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.16, allocations: 1.188 kB / 400.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002544/0.1602, allocations: 144.1 kB / 400.8 MB, free: 4.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005624/0.1608, allocations: 73.28 kB / 400.9 MB, free: 4.629 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/0.1632, allocations: 1.574 MB / 402.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006781/0.1639, allocations: 0.921 MB / 403.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001696/0.1641, allocations: 55.31 kB / 403.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.612e-05/0.1642, allocations: 31.44 kB / 403.5 MB, free: 1.977 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1642, allocations: 0 / 403.5 MB, free: 1.977 MB / 334.1 MB Notification: Performance of Templates: time 0.009782/0.174, allocations: 3.83 MB / 407.3 MB, free: 14.14 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1)