Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00141/0.00141, allocations: 111.6 kB / 16.62 MB, free: 6.812 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.001443/0.001443, allocations: 190 kB / 17.55 MB, free: 5.934 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.47/1.47, allocations: 205.1 MB / 223.4 MB, free: 12.44 MB / 190.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.001155/0.001155, allocations: 43.94 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1178, allocations: 46.63 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006636/0.1245, allocations: 5.406 MB / 331.5 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003738/0.1283, allocations: 2.045 MB / 333.6 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007865/0.1291, allocations: 35.81 kB / 333.6 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004961/0.1296, allocations: 174.8 kB / 333.8 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000443/0.1301, allocations: 134.9 kB / 333.9 MB, free: 12.96 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009007/0.131, allocations: 339.4 kB / 334.3 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001001/0.132, allocations: 1.017 MB / 335.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007368/0.1328, allocations: 0.5986 MB / 335.9 MB, free: 10.98 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004024/0.1332, allocations: 342.8 kB / 336.2 MB, free: 10.65 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003343/0.1335, allocations: 354.4 kB / 336.5 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.1336, allocations: 95.94 kB / 336.6 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002524/0.1339, allocations: 155.9 kB / 336.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002011/0.1341, allocations: 199.4 kB / 337 MB, free: 9.859 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003524/0.1344, allocations: 434 kB / 337.4 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.1355, allocations: 1.149 MB / 338.6 MB, free: 8.281 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1355, allocations: 0 / 338.6 MB, free: 8.281 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1355, allocations: 0 / 338.6 MB, free: 8.281 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.1355, allocations: 0 / 338.6 MB, free: 8.281 MB / 286.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.001513/0.137, allocations: 1.026 MB / 339.6 MB, free: 7.203 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.1371, allocations: 8.031 kB / 339.6 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.1372, allocations: 91.91 kB / 339.7 MB, free: 7.105 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006313/0.1379, allocations: 0.5024 MB / 340.2 MB, free: 6.562 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.052e-05/0.1379, allocations: 62.38 kB / 340.2 MB, free: 6.504 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.1381, allocations: 88.28 kB / 340.3 MB, free: 6.418 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.1394, allocations: 0.8047 MB / 341.1 MB, free: 5.574 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.468e-05/0.1395, allocations: 11.92 kB / 341.1 MB, free: 5.562 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.714e-05/0.1395, allocations: 36 kB / 341.2 MB, free: 5.527 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.1395, allocations: 20 kB / 341.2 MB, free: 5.508 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008722/0.1404, allocations: 0.4957 MB / 341.7 MB, free: 5.016 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003251/0.1437, allocations: 2.891 MB / 344.6 MB, free: 1.992 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005657/0.1443, allocations: 226.7 kB / 344.8 MB, free: 1.762 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/0.1444, allocations: 108.8 kB / 344.9 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003119/0.1448, allocations: 247.3 kB / 345.2 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.1448, allocations: 42.48 kB / 345.2 MB, free: 1.305 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 2.083e-06/0.1448, allocations: 0 / 345.2 MB, free: 1.305 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002465/0.1473, allocations: 1.254 MB / 346.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.1473, allocations: 55.41 kB / 346.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004509/0.1478, allocations: 304.4 kB / 346.8 MB, free: 15.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.1478, allocations: 33.7 kB / 346.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003264/0.1482, allocations: 398.6 kB / 347.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.1483, allocations: 142 kB / 347.4 MB, free: 15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.1484, allocations: 90.09 kB / 347.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1486, allocations: 354.7 kB / 347.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.1488, allocations: 105.1 kB / 347.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002921/0.1491, allocations: 258.5 kB / 348.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005256/0.1496, allocations: 388.7 kB / 348.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1496, allocations: 0 / 348.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006817/0.1503, allocations: 461.3 kB / 349 MB, free: 13.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.1503, allocations: 8 kB / 349 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1504, allocations: 4 kB / 349 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001955/0.1506, allocations: 36.83 kB / 349 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003319/0.1509, allocations: 111.8 kB / 349.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003998/0.1513, allocations: 0.5603 MB / 349.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001658/0.1515, allocations: 12 kB / 349.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.517e-05/0.1515, allocations: 20 kB / 349.7 MB, free: 12.46 MB / 302.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.0003235/0.1519, allocations: 217.7 kB / 349.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.595e-05/0.1519, allocations: 39.53 kB / 350 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006884/0.1526, allocations: 326 kB / 350.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.1526, allocations: 4 kB / 350.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.1527, allocations: 0 / 350.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.1527, allocations: 3.984 kB / 350.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001453/0.1541, allocations: 1.021 MB / 351.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1541, allocations: 0 / 351.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003371/0.1545, allocations: 75.91 kB / 351.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001369/0.1546, allocations: 36.83 kB / 351.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/0.1547, allocations: 8 kB / 351.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004199/0.1551, allocations: 0.5642 MB / 352 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-05/0.1551, allocations: 3.938 kB / 352 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007747/0.1559, allocations: 0.5438 MB / 352.6 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.657e-05/0.156, allocations: 108.6 kB / 352.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.304e-05/0.1561, allocations: 12 kB / 352.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.1562, allocations: 8 kB / 352.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.247e-05/0.1563, allocations: 27.91 kB / 352.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.1563, allocations: 8 kB / 352.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002316/0.1566, allocations: 219 kB / 352.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1566, allocations: 0 / 352.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005086/0.1571, allocations: 120 kB / 353.1 MB, free: 8.961 MB / 302.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.000217/0.1573, allocations: 111.3 kB / 353.2 MB, free: 8.844 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006917/0.158, allocations: 324 kB / 353.5 MB, free: 8.527 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.158, allocations: 0 / 353.5 MB, free: 8.527 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000251/0.1583, allocations: 139.8 kB / 353.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004963/0.1588, allocations: 73.83 kB / 353.7 MB, free: 8.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.1617, allocations: 1.936 MB / 355.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005906/0.1623, allocations: 0.9171 MB / 356.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000172/0.1625, allocations: 43.34 kB / 356.6 MB, free: 5.352 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.689e-05/0.1626, allocations: 35.42 kB / 356.6 MB, free: 5.316 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1626, allocations: 0 / 356.6 MB, free: 5.316 MB / 302.1 MB Notification: Performance of Templates: time 0.008245/0.1708, allocations: 3.724 MB / 360.3 MB, free: 1.594 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1)