Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.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.00736/0.00736, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001213/0.001213, allocations: 198.7 kB / 16.68 MB, free: 5.93 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.602/1.602, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001215/0.001215, allocations: 50.98 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1148, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.008515/0.1234, allocations: 5.414 MB / 378.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005174/0.1286, allocations: 2.123 MB / 380.7 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.1297, allocations: 35.81 kB / 380.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005819/0.1303, allocations: 202.2 kB / 380.9 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005112/0.1308, allocations: 174.4 kB / 381.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.1319, allocations: 387.1 kB / 381.5 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00102/0.133, allocations: 1.017 MB / 382.5 MB, free: 7.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008981/0.1339, allocations: 0.6142 MB / 383.1 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005644/0.1345, allocations: 326.9 kB / 383.4 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004256/0.1349, allocations: 366.3 kB / 383.8 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.135, allocations: 92 kB / 383.9 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003194/0.1354, allocations: 147.9 kB / 384 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001911/0.1355, allocations: 207.4 kB / 384.2 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003663/0.1359, allocations: 426 kB / 384.6 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001134/0.1371, allocations: 1.18 MB / 385.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1371, allocations: 0 / 385.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1371, allocations: 0 / 385.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.1371, allocations: 4 kB / 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.001441/0.1386, allocations: 1.03 MB / 386.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.1386, allocations: 8.031 kB / 386.9 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.1387, allocations: 87.91 kB / 386.9 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000802/0.1395, allocations: 0.522 MB / 387.5 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.985e-05/0.1396, allocations: 62.38 kB / 387.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.1397, allocations: 88.28 kB / 387.6 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.1411, allocations: 0.8047 MB / 388.4 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.988e-05/0.1411, allocations: 7.906 kB / 388.4 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.917e-05/0.1412, allocations: 36 kB / 388.5 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.04e-05/0.1412, allocations: 24 kB / 388.5 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000968/0.1422, allocations: 0.4996 MB / 389 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003356/0.1456, allocations: 2.848 MB / 391.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000565/0.1462, allocations: 219.8 kB / 392 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.1463, allocations: 108.8 kB / 392.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000249/0.1466, allocations: 251.3 kB / 392.4 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.1466, allocations: 30.56 kB / 392.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.264e-06/0.1467, allocations: 0 / 392.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002337/0.149, allocations: 1.267 MB / 393.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.1491, allocations: 55.41 kB / 393.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.1493, allocations: 308.4 kB / 394.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.1494, allocations: 33.7 kB / 394.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002223/0.1496, allocations: 406.5 kB / 394.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.1498, allocations: 126.1 kB / 394.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.1499, allocations: 94.19 kB / 394.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002774/0.1502, allocations: 350.7 kB / 395 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000193/0.1504, allocations: 105.1 kB / 395.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003038/0.1507, allocations: 254.7 kB / 395.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005059/0.1512, allocations: 392.6 kB / 395.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.1512, allocations: 4 kB / 395.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006827/0.1519, allocations: 461 kB / 396.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.1519, allocations: 8 kB / 396.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.152, allocations: 4 kB / 396.2 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001815/0.1521, allocations: 32.84 kB / 396.3 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/0.1525, allocations: 111.8 kB / 396.4 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003841/0.1529, allocations: 0.5605 MB / 396.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001788/0.1531, allocations: 19.98 kB / 397 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.1531, allocations: 20 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.0002856/0.1534, allocations: 221.7 kB / 397.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.826e-05/0.1535, allocations: 35.56 kB / 397.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005823/0.1541, allocations: 322.3 kB / 397.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.1541, allocations: 4 kB / 397.5 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1541, allocations: 0 / 397.5 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.1541, allocations: 0 / 397.5 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.1554, allocations: 1.011 MB / 398.6 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.1554, allocations: 0 / 398.6 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003481/0.1558, allocations: 79.89 kB / 398.6 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001172/0.1559, allocations: 32.84 kB / 398.7 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.1559, allocations: 8 kB / 398.7 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000312/0.1563, allocations: 0.5603 MB / 399.2 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.1563, allocations: 0 / 399.2 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007179/0.157, allocations: 0.5602 MB / 399.8 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.995e-05/0.1571, allocations: 100.7 kB / 399.9 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.159e-05/0.1571, allocations: 8 kB / 399.9 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.1573, allocations: 15.98 kB / 399.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.871e-05/0.1574, allocations: 24 kB / 399.9 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.546e-05/0.1574, allocations: 12 kB / 400 MB, free: 5.602 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001851/0.1576, allocations: 215 kB / 400.2 MB, free: 5.395 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.164e-06/0.1576, allocations: 4.188 kB / 400.2 MB, free: 5.391 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004874/0.1581, allocations: 123.9 kB / 400.3 MB, free: 5.27 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.0001797/0.1583, allocations: 127.2 kB / 400.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000582/0.1589, allocations: 304.7 kB / 400.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1589, allocations: 0 / 400.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002482/0.1591, allocations: 135.8 kB / 400.8 MB, free: 4.707 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005134/0.1596, allocations: 69.3 kB / 400.9 MB, free: 4.641 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.162, allocations: 1.582 MB / 402.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004862/0.1625, allocations: 0.9171 MB / 403.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001452/0.1626, allocations: 51.33 kB / 403.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.233e-05/0.1627, allocations: 31.44 kB / 403.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1627, allocations: 0 / 403.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of Templates: time 0.008462/0.1712, allocations: 3.826 MB / 407.3 MB, free: 14.16 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1)