Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009267/0.0009268, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.000948/0.0009483, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.738/1.738, allocations: 205.4 MB / 222.1 MB, free: 5.676 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.0004664/0.0004665, allocations: 8 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2824, allocations: 47.58 MB / 326.5 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01136/0.2938, allocations: 9.277 MB / 335.7 MB, free: 10.23 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00754/0.3014, allocations: 3.144 MB / 338.9 MB, free: 7.078 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001709/0.3032, allocations: 39.88 kB / 338.9 MB, free: 7.039 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001671/0.3049, allocations: 0.5013 MB / 339.4 MB, free: 6.535 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002326/0.3072, allocations: 0.7128 MB / 340.1 MB, free: 5.82 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008204/0.3081, allocations: 239.7 kB / 340.4 MB, free: 5.586 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003027/0.3111, allocations: 1.557 MB / 341.9 MB, free: 4.023 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001209/0.3123, allocations: 0.6791 MB / 342.6 MB, free: 3.324 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001453/0.3138, allocations: 0.6419 MB / 343.2 MB, free: 2.68 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009729/0.3148, allocations: 0.7115 MB / 344 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001718/0.315, allocations: 96 kB / 344 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003797/0.3153, allocations: 136 kB / 344.2 MB, free: 1.738 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002249/0.3156, allocations: 274.8 kB / 344.4 MB, free: 1.469 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004103/0.316, allocations: 388.8 kB / 344.8 MB, free: 1.082 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001837/0.3178, allocations: 2.049 MB / 346.9 MB, free: 15.03 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3179, allocations: 0 / 346.9 MB, free: 15.03 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.497e-06/0.3179, allocations: 0 / 346.9 MB, free: 15.03 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.465e-05/0.3179, allocations: 0 / 346.9 MB, free: 15.03 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003115/0.321, allocations: 1.756 MB / 348.6 MB, free: 13.21 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.3211, allocations: 8.031 kB / 348.6 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006508/0.3217, allocations: 245.6 kB / 348.9 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001671/0.3234, allocations: 1.012 MB / 349.9 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.3235, allocations: 119.1 kB / 350 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002325/0.3238, allocations: 155.9 kB / 350.2 MB, free: 11.63 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00247/0.3263, allocations: 1.464 MB / 351.6 MB, free: 10.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.281e-05/0.3263, allocations: 3.938 kB / 351.6 MB, free: 10.09 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001226/0.3265, allocations: 71.98 kB / 351.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.55e-05/0.3265, allocations: 40 kB / 351.7 MB, free: 9.98 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001913/0.3284, allocations: 0.963 MB / 352.7 MB, free: 9.012 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008607/0.337, allocations: 6.52 MB / 359.2 MB, free: 2.137 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008182/0.3379, allocations: 404.2 kB / 359.6 MB, free: 1.734 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.423e-05/0.338, allocations: 8.438 kB / 359.6 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005692/0.3386, allocations: 276.7 kB / 359.9 MB, free: 1.434 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 2.514e-06/0.3386, allocations: 0 / 359.9 MB, free: 1.434 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.003337/0.3419, allocations: 1.782 MB / 361.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.166e-05/0.342, allocations: 158.8 kB / 361.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001466/0.3435, allocations: 1.195 MB / 363 MB, free: 14.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.251e-05/0.3435, allocations: 37.7 kB / 363.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006912/0.3442, allocations: 0.8673 MB / 363.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.3444, allocations: 209.2 kB / 364.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-05/0.3445, allocations: 28 kB / 364.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.3447, allocations: 349.9 kB / 364.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004711/0.3451, allocations: 226.5 kB / 364.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009257/0.3461, allocations: 0.8073 MB / 365.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006819/0.3468, allocations: 395.6 kB / 365.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.3468, allocations: 8 kB / 365.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002135/0.3489, allocations: 1.169 MB / 367.1 MB, free: 9.754 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.183e-05/0.349, allocations: 45.69 kB / 367.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.697e-05/0.349, allocations: 20 kB / 367.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002844/0.3493, allocations: 70.3 kB / 367.2 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008173/0.3502, allocations: 267.6 kB / 367.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001991/0.3522, allocations: 2.595 MB / 370.1 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/0.3533, allocations: 67.89 kB / 370.2 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.385e-05/0.3533, allocations: 60 kB / 370.2 MB, free: 6.359 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00082/0.3542, allocations: 365.4 kB / 370.6 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.3544, allocations: 138.3 kB / 370.7 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.3555, allocations: 0.5607 MB / 371.3 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3555, allocations: 4 kB / 371.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.3555, allocations: 4 kB / 371.3 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.3555, allocations: 7.875 kB / 371.3 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00291/0.3584, allocations: 1.814 MB / 373.1 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/0.3584, allocations: 7.938 kB / 373.1 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000441/0.3589, allocations: 104.3 kB / 373.2 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001819/0.3591, allocations: 49.69 kB / 373.2 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.553e-05/0.3591, allocations: 12 kB / 373.3 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002291/0.3614, allocations: 2.572 MB / 375.8 MB, free: 336 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.3615, allocations: 11.88 kB / 375.8 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001743/0.3632, allocations: 1.128 MB / 377 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004541/0.3637, allocations: 243.4 kB / 377.2 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001487/0.3638, allocations: 16 kB / 377.2 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004864/0.3643, allocations: 35.97 kB / 377.3 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.3645, allocations: 59.83 kB / 377.3 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/0.3645, allocations: 12 kB / 377.3 MB, free: 14.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001172/0.3657, allocations: 0.7797 MB / 378.1 MB, free: 13.84 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3657, allocations: 0 / 378.1 MB, free: 13.84 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001271/0.367, allocations: 300 kB / 378.4 MB, free: 13.55 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000288/0.3673, allocations: 131.1 kB / 378.5 MB, free: 13.41 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.3688, allocations: 0.925 MB / 379.5 MB, free: 12.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3689, allocations: 0.8125 kB / 379.5 MB, free: 12.45 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006659/0.3695, allocations: 477.2 kB / 379.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.3708, allocations: 309.5 kB / 380.2 MB, free: 11.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004687/0.3755, allocations: 3.062 MB / 383.3 MB, free: 8.516 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008546/0.3764, allocations: 1.22 MB / 384.5 MB, free: 7.266 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006592/0.3771, allocations: 167.2 kB / 384.7 MB, free: 7.098 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/0.3773, allocations: 87.44 kB / 384.8 MB, free: 7.012 MB / 318.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3773, allocations: 4 kB / 384.8 MB, free: 7.008 MB / 318.1 MB Notification: Performance of Templates: time 0.02643/0.4037, allocations: 12.92 MB / 397.7 MB, free: 10.07 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) Environment - environmentSimulation: