Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001606/0.001606, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002079/0.002079, allocations: 193.5 kB / 16.14 MB, free: 6.707 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.831/1.831, allocations: 205.1 MB / 222 MB, free: 4.957 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.002525/0.002526, allocations: 55.91 kB / 278.1 MB, free: 12.99 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3746, allocations: 46.62 MB / 324.7 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01529/0.39, allocations: 11.6 MB / 336.3 MB, free: 8.547 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008918/0.3989, allocations: 3.2 MB / 339.5 MB, free: 5.336 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003266/0.4023, allocations: 35.94 kB / 339.5 MB, free: 5.301 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002515/0.4049, allocations: 0.5477 MB / 340.1 MB, free: 4.75 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004067/0.409, allocations: 0.5857 MB / 340.7 MB, free: 4.16 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.4101, allocations: 343.7 kB / 341 MB, free: 3.824 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003038/0.4131, allocations: 2.129 MB / 343.1 MB, free: 1.684 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001316/0.4145, allocations: 0.8501 MB / 344 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001428/0.4159, allocations: 0.7505 MB / 344.7 MB, free: 44 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001143/0.4171, allocations: 0.8671 MB / 345.6 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002283/0.4173, allocations: 132 kB / 345.7 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000478/0.4178, allocations: 172 kB / 345.9 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003027/0.4181, allocations: 346.5 kB / 346.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001139/0.4193, allocations: 0.9406 MB / 347.2 MB, free: 13.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00276/0.422, allocations: 2.577 MB / 349.7 MB, free: 11 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.859e-06/0.4221, allocations: 0 / 349.7 MB, free: 11 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.862e-06/0.4221, allocations: 4 kB / 349.7 MB, free: 11 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.815e-05/0.4221, allocations: 3.938 kB / 349.7 MB, free: 11 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.004319/0.4265, allocations: 2.06 MB / 351.8 MB, free: 8.871 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.4265, allocations: 8.031 kB / 351.8 MB, free: 8.863 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009045/0.4275, allocations: 258.5 kB / 352.1 MB, free: 8.609 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.4293, allocations: 1.02 MB / 353.1 MB, free: 7.547 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-05/0.4294, allocations: 115.5 kB / 353.2 MB, free: 7.434 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002264/0.4296, allocations: 163.8 kB / 353.4 MB, free: 7.273 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002571/0.4322, allocations: 1.484 MB / 354.8 MB, free: 5.715 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.013e-05/0.4323, allocations: 11.84 kB / 354.9 MB, free: 5.703 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/0.4324, allocations: 71.94 kB / 354.9 MB, free: 5.633 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.09e-05/0.4324, allocations: 36 kB / 355 MB, free: 5.598 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001875/0.4343, allocations: 0.9824 MB / 355.9 MB, free: 4.609 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009496/0.4438, allocations: 6.566 MB / 362.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008744/0.4448, allocations: 400.2 kB / 362.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004207/0.4452, allocations: 222.1 kB / 363.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.979e-05/0.4452, allocations: 8.438 kB / 363.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005817/0.4458, allocations: 272.7 kB / 363.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.833e-06/0.4458, allocations: 0 / 363.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003616/0.4495, allocations: 1.758 MB / 365.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.647e-05/0.4496, allocations: 170.7 kB / 365.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00187/0.4515, allocations: 1.277 MB / 366.6 MB, free: 9.418 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.08e-05/0.4515, allocations: 37.7 kB / 366.6 MB, free: 9.375 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008124/0.4524, allocations: 0.8751 MB / 367.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.4526, allocations: 201.2 kB / 367.7 MB, free: 8.289 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003092/0.4529, allocations: 218.7 kB / 367.9 MB, free: 8.066 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.4531, allocations: 353.9 kB / 368.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004597/0.4535, allocations: 226.5 kB / 368.5 MB, free: 7.496 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008715/0.4544, allocations: 0.8073 MB / 369.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00149/0.4559, allocations: 1.114 MB / 370.4 MB, free: 5.031 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.266e-05/0.4559, allocations: 8 kB / 370.4 MB, free: 5.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002105/0.458, allocations: 1.176 MB / 371.6 MB, free: 3.824 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.535e-05/0.4581, allocations: 38.39 kB / 371.6 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.435e-05/0.4581, allocations: 20 kB / 371.6 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003252/0.4585, allocations: 77.62 kB / 371.7 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000759/0.4593, allocations: 255.6 kB / 372 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002262/0.4615, allocations: 2.579 MB / 374.6 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/0.4629, allocations: 67.88 kB / 374.6 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.897e-05/0.4629, allocations: 60 kB / 374.7 MB, free: 472 kB / 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.0007387/0.4637, allocations: 369.2 kB / 375 MB, free: 88 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/0.4639, allocations: 130.5 kB / 375.2 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001215/0.4651, allocations: 0.5411 MB / 375.7 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.4651, allocations: 11.94 kB / 375.7 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.975e-05/0.4652, allocations: 0 / 375.7 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.4652, allocations: 11.92 kB / 375.7 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003334/0.4686, allocations: 1.881 MB / 377.6 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.4686, allocations: 0 / 377.6 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000439/0.469, allocations: 103.9 kB / 377.7 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001896/0.4692, allocations: 49.64 kB / 377.8 MB, free: 13.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.309e-05/0.4693, allocations: 16 kB / 377.8 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002448/0.4717, allocations: 2.548 MB / 380.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.4718, allocations: 4 kB / 380.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001771/0.4735, allocations: 0.9303 MB / 381.3 MB, free: 9.391 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005588/0.4741, allocations: 255.4 kB / 381.5 MB, free: 9.121 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001461/0.4743, allocations: 19.98 kB / 381.5 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005715/0.4748, allocations: 23.98 kB / 381.5 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.475, allocations: 59.81 kB / 381.6 MB, free: 9.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.349e-05/0.475, allocations: 19.98 kB / 381.6 MB, free: 9 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001422/0.4765, allocations: 0.8461 MB / 382.5 MB, free: 8.152 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4765, allocations: 0 / 382.5 MB, free: 8.152 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001331/0.4778, allocations: 312 kB / 382.8 MB, free: 7.848 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.0003022/0.4781, allocations: 135.2 kB / 382.9 MB, free: 7.707 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.4797, allocations: 0.9258 MB / 383.8 MB, free: 6.746 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4797, allocations: 0 / 383.8 MB, free: 6.746 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007201/0.4804, allocations: 472.8 kB / 384.3 MB, free: 6.258 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/0.4821, allocations: 313.9 kB / 384.6 MB, free: 5.949 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00505/0.4871, allocations: 3.135 MB / 387.7 MB, free: 2.734 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009354/0.4881, allocations: 1.182 MB / 388.9 MB, free: 1.516 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007575/0.4888, allocations: 171.3 kB / 389.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/0.489, allocations: 79.44 kB / 389.2 MB, free: 1.27 MB / 318.1 MB Notification: Performance of SimCode: time 8.51e-07/0.489, allocations: 4 kB / 389.2 MB, free: 1.266 MB / 318.1 MB Notification: Performance of Templates: time 0.02939/0.5184, allocations: 14.25 MB / 403.4 MB, free: 3 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)