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.001051/0.001051, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.01011/0.01011, allocations: 174.1 kB / 16.26 MB, free: 6.273 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.922/1.922, allocations: 205.4 MB / 222.4 MB, free: 5.789 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.0004639/0.0004639, allocations: 8 kB / 279.4 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3135, allocations: 47.58 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01187/0.3254, allocations: 11.03 MB / 338.1 MB, free: 8.332 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006894/0.3323, allocations: 3.157 MB / 341.2 MB, free: 5.164 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001478/0.3339, allocations: 39.88 kB / 341.3 MB, free: 5.125 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001701/0.3356, allocations: 0.5516 MB / 341.8 MB, free: 4.57 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001905/0.3375, allocations: 0.5857 MB / 342.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007528/0.3383, allocations: 347.7 kB / 342.7 MB, free: 3.641 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002466/0.3407, allocations: 2.129 MB / 344.9 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001166/0.3419, allocations: 0.8501 MB / 345.7 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.343, allocations: 0.6842 MB / 346.4 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000918/0.3439, allocations: 0.785 MB / 347.2 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001601/0.3441, allocations: 100 kB / 347.3 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003496/0.3444, allocations: 140 kB / 347.4 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002342/0.3447, allocations: 298.5 kB / 347.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008222/0.3455, allocations: 0.9032 MB / 348.6 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002173/0.3477, allocations: 2.514 MB / 351.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3477, allocations: 4 kB / 351.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3477, allocations: 0 / 351.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.374e-05/0.3478, allocations: 0 / 351.1 MB, free: 11.17 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.003114/0.3509, allocations: 1.748 MB / 352.9 MB, free: 9.355 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.3509, allocations: 8.031 kB / 352.9 MB, free: 9.348 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007744/0.3517, allocations: 262.5 kB / 353.1 MB, free: 9.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001607/0.3533, allocations: 1.024 MB / 354.2 MB, free: 8.023 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/0.3535, allocations: 115.5 kB / 354.3 MB, free: 7.91 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002243/0.3537, allocations: 159.8 kB / 354.4 MB, free: 7.754 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002675/0.3564, allocations: 1.499 MB / 355.9 MB, free: 6.18 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.069e-05/0.3564, allocations: 7.938 kB / 355.9 MB, free: 6.172 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001235/0.3566, allocations: 64 kB / 356 MB, free: 6.109 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-05/0.3566, allocations: 36 kB / 356 MB, free: 6.074 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001958/0.3586, allocations: 0.9903 MB / 357 MB, free: 5.078 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009354/0.3679, allocations: 6.598 MB / 363.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008796/0.3689, allocations: 404.1 kB / 364 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004286/0.3693, allocations: 226.1 kB / 364.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.994e-05/0.3694, allocations: 8.438 kB / 364.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005859/0.37, allocations: 276.8 kB / 364.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.895e-06/0.37, allocations: 3.938 kB / 364.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003714/0.3737, allocations: 1.785 MB / 366.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.3738, allocations: 166.8 kB / 366.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001809/0.3756, allocations: 1.269 MB / 367.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.549e-05/0.3757, allocations: 41.64 kB / 367.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007643/0.3765, allocations: 0.8751 MB / 368.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/0.3767, allocations: 205.2 kB / 368.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.3768, allocations: 93.66 kB / 369 MB, free: 8.594 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.377, allocations: 353.9 kB / 369.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004742/0.3774, allocations: 238.5 kB / 369.5 MB, free: 8.008 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008845/0.3783, allocations: 0.8073 MB / 370.3 MB, free: 6.926 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001442/0.3798, allocations: 1.13 MB / 371.5 MB, free: 5.527 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.3798, allocations: 4 kB / 371.5 MB, free: 5.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002039/0.3819, allocations: 1.181 MB / 372.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.187e-05/0.3819, allocations: 45.83 kB / 372.7 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-05/0.3819, allocations: 16 kB / 372.7 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002378/0.3822, allocations: 73.56 kB / 372.8 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000771/0.383, allocations: 267.6 kB / 373 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/0.3851, allocations: 2.579 MB / 375.6 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.3861, allocations: 75.95 kB / 375.7 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.366e-05/0.3862, allocations: 63.98 kB / 375.8 MB, free: 0.9336 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007329/0.3869, allocations: 357.3 kB / 376.1 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001838/0.3871, allocations: 130.4 kB / 376.2 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001122/0.3882, allocations: 0.5606 MB / 376.8 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.3882, allocations: 11.94 kB / 376.8 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.3883, allocations: 0 / 376.8 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.3883, allocations: 3.984 kB / 376.8 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003071/0.3913, allocations: 1.897 MB / 378.7 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.3914, allocations: 0 / 378.7 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004196/0.3918, allocations: 103.9 kB / 378.8 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000152/0.392, allocations: 46.06 kB / 378.9 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.314e-05/0.392, allocations: 16 kB / 378.9 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00185/0.3939, allocations: 2.552 MB / 381.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.3939, allocations: 7.938 kB / 381.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/0.3954, allocations: 0.9381 MB / 382.4 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004718/0.3959, allocations: 255.4 kB / 382.6 MB, free: 9.559 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.396, allocations: 19.98 kB / 382.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005082/0.3965, allocations: 35.98 kB / 382.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.3967, allocations: 55.75 kB / 382.7 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/0.3967, allocations: 23.94 kB / 382.8 MB, free: 9.426 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001219/0.3979, allocations: 0.85 MB / 383.6 MB, free: 8.574 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3979, allocations: 0 / 383.6 MB, free: 8.574 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001206/0.3992, allocations: 312 kB / 383.9 MB, free: 8.27 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002456/0.3994, allocations: 131 kB / 384 MB, free: 8.133 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001652/0.4011, allocations: 0.933 MB / 385 MB, free: 7.164 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.4011, allocations: 4 kB / 385 MB, free: 7.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007124/0.4018, allocations: 478.5 kB / 385.4 MB, free: 6.668 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002105/0.4039, allocations: 309 kB / 385.7 MB, free: 6.363 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00465/0.4086, allocations: 3.258 MB / 389 MB, free: 3.027 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008305/0.4094, allocations: 1.178 MB / 390.2 MB, free: 1.816 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007086/0.4102, allocations: 175.3 kB / 390.3 MB, free: 1.641 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/0.4103, allocations: 87.42 kB / 390.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4103, allocations: 0 / 390.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of Templates: time 0.03307/0.4434, allocations: 14.15 MB / 404.6 MB, free: 3.391 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (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)