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.001575/0.001575, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001637/0.001637, allocations: 194.4 kB / 16.25 MB, free: 6.625 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.565/1.565, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.001129/0.001129, allocations: 43.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2273, allocations: 46.63 MB / 324.8 MB, free: 1.91 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007435/0.2348, allocations: 5.405 MB / 330.2 MB, free: 13.65 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004293/0.2391, allocations: 2.054 MB / 332.3 MB, free: 11.97 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009088/0.2401, allocations: 38.44 kB / 332.3 MB, free: 11.95 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005147/0.2407, allocations: 165 kB / 332.5 MB, free: 11.81 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004677/0.2411, allocations: 144.7 kB / 332.6 MB, free: 11.69 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009637/0.2421, allocations: 339.4 kB / 333 MB, free: 11.41 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001121/0.2432, allocations: 1.008 MB / 334 MB, free: 10.8 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008611/0.2441, allocations: 0.5977 MB / 334.6 MB, free: 10.33 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000408/0.2445, allocations: 342.8 kB / 334.9 MB, free: 9.996 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003385/0.2449, allocations: 354.4 kB / 335.3 MB, free: 9.648 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.245, allocations: 92 kB / 335.3 MB, free: 9.559 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002464/0.2452, allocations: 155.9 kB / 335.5 MB, free: 9.406 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.2454, allocations: 203.4 kB / 335.7 MB, free: 9.207 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003448/0.2458, allocations: 433.9 kB / 336.1 MB, free: 8.781 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009856/0.2468, allocations: 1.146 MB / 337.3 MB, free: 7.633 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.2468, allocations: 0 / 337.3 MB, free: 7.633 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2468, allocations: 0 / 337.3 MB, free: 7.633 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.2468, allocations: 4 kB / 337.3 MB, free: 7.629 MB / 270.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.001465/0.2483, allocations: 1.03 MB / 338.3 MB, free: 6.547 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.2483, allocations: 12.03 kB / 338.3 MB, free: 6.535 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.2485, allocations: 91.89 kB / 338.4 MB, free: 6.445 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006438/0.2491, allocations: 0.4947 MB / 338.9 MB, free: 5.91 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.461e-05/0.2492, allocations: 62.38 kB / 339 MB, free: 5.852 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.2493, allocations: 92.36 kB / 339 MB, free: 5.762 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.2507, allocations: 0.797 MB / 339.8 MB, free: 4.926 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.714e-05/0.2507, allocations: 15.89 kB / 339.9 MB, free: 4.91 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.207e-05/0.2508, allocations: 36 kB / 339.9 MB, free: 4.875 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.2508, allocations: 20 kB / 339.9 MB, free: 4.855 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009174/0.2517, allocations: 0.4957 MB / 340.4 MB, free: 4.363 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003146/0.2549, allocations: 2.887 MB / 343.3 MB, free: 1.344 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005372/0.2555, allocations: 227.4 kB / 343.5 MB, free: 1.113 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001838/0.2556, allocations: 104.8 kB / 343.6 MB, free: 1.008 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003658/0.256, allocations: 255.3 kB / 343.9 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.2561, allocations: 34.56 kB / 343.9 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.994e-06/0.2561, allocations: 3.938 kB / 343.9 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.002397/0.2585, allocations: 1.255 MB / 345.2 MB, free: 15.31 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.735e-05/0.2585, allocations: 55.41 kB / 345.2 MB, free: 15.24 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003144/0.2588, allocations: 296.6 kB / 345.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.2589, allocations: 33.7 kB / 345.5 MB, free: 14.9 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.2591, allocations: 406.5 kB / 345.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.298e-05/0.2592, allocations: 130.1 kB / 346.1 MB, free: 14.37 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.2593, allocations: 94.09 kB / 346.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.2595, allocations: 354.7 kB / 346.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.2597, allocations: 105.1 kB / 346.6 MB, free: 13.81 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.26, allocations: 250.5 kB / 346.8 MB, free: 13.51 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005014/0.2605, allocations: 396.6 kB / 347.2 MB, free: 13.06 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.2605, allocations: 0 / 347.2 MB, free: 13.06 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006849/0.2612, allocations: 465 kB / 347.7 MB, free: 12.59 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.2612, allocations: 8 kB / 347.7 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.2612, allocations: 4 kB / 347.7 MB, free: 12.58 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002013/0.2614, allocations: 36.83 kB / 347.7 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003277/0.2618, allocations: 112.4 kB / 347.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004325/0.2622, allocations: 0.5524 MB / 348.4 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.2624, allocations: 19.94 kB / 348.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.153e-05/0.2625, allocations: 20 kB / 348.4 MB, free: 11.82 MB / 286.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.0002879/0.2627, allocations: 217.7 kB / 348.7 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.642e-05/0.2628, allocations: 39.53 kB / 348.7 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006139/0.2634, allocations: 326 kB / 349 MB, free: 11.23 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.2635, allocations: 4 kB / 349 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.2635, allocations: 0 / 349 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.2635, allocations: 3.984 kB / 349 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001369/0.2649, allocations: 1.029 MB / 350 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.2649, allocations: 0 / 350 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003534/0.2652, allocations: 75.91 kB / 350.1 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001311/0.2654, allocations: 36.98 kB / 350.2 MB, free: 10 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.2654, allocations: 12 kB / 350.2 MB, free: 9.992 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003109/0.2657, allocations: 0.5523 MB / 350.7 MB, free: 9.414 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.2657, allocations: 0 / 350.7 MB, free: 9.414 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007291/0.2665, allocations: 0.5515 MB / 351.3 MB, free: 8.824 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.856e-05/0.2666, allocations: 108.6 kB / 351.4 MB, free: 8.699 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.217e-05/0.2666, allocations: 12 kB / 351.4 MB, free: 8.688 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.2668, allocations: 8 kB / 351.4 MB, free: 8.68 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.236e-05/0.2668, allocations: 28 kB / 351.4 MB, free: 8.652 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.2669, allocations: 15.98 kB / 351.4 MB, free: 8.637 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002159/0.2671, allocations: 211 kB / 351.6 MB, free: 8.43 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.413e-06/0.2671, allocations: 0 / 351.6 MB, free: 8.43 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004699/0.2676, allocations: 123.9 kB / 351.8 MB, free: 8.309 MB / 286.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.0001766/0.2677, allocations: 115.2 kB / 351.9 MB, free: 8.188 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006397/0.2684, allocations: 323.4 kB / 352.2 MB, free: 7.871 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2684, allocations: 0 / 352.2 MB, free: 7.871 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002538/0.2687, allocations: 145.1 kB / 352.3 MB, free: 7.73 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004954/0.2692, allocations: 76.55 kB / 352.4 MB, free: 7.66 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002617/0.2718, allocations: 1.913 MB / 354.3 MB, free: 5.703 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005708/0.2724, allocations: 0.9171 MB / 355.2 MB, free: 4.758 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001695/0.2726, allocations: 47.33 kB / 355.3 MB, free: 4.707 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.905e-05/0.2726, allocations: 39.42 kB / 355.3 MB, free: 4.668 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2726, allocations: 0 / 355.3 MB, free: 4.668 MB / 286.1 MB Notification: Performance of Templates: time 0.008317/0.281, allocations: 3.716 MB / 359 MB, free: 0.9492 MB / 286.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)