Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001352/0.001352, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00155/0.001551, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.432/1.432, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 67.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2996, allocations: 50.55 MB / 409.1 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01524/0.3149, allocations: 11.75 MB / 420.8 MB, free: 5.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007595/0.3225, allocations: 3.261 MB / 424.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001949/0.3246, allocations: 35.94 kB / 424.1 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0022/0.3268, allocations: 0.6479 MB / 424.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002845/0.3296, allocations: 0.6665 MB / 425.4 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00119/0.3308, allocations: 407.5 kB / 425.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003493/0.3343, allocations: 2.241 MB / 428.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001544/0.3359, allocations: 0.9811 MB / 429 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001625/0.3375, allocations: 0.8443 MB / 429.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001719/0.3393, allocations: 0.9178 MB / 430.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003696/0.3397, allocations: 216 kB / 431 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006648/0.3403, allocations: 256 kB / 431.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004236/0.3408, allocations: 434.4 kB / 431.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001309/0.3421, allocations: 1.011 MB / 432.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003627/0.3457, allocations: 2.689 MB / 435.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3458, allocations: 0 / 435.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3458, allocations: 0 / 435.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.396e-05/0.3459, allocations: 0 / 435.4 MB, free: 7.016 MB / 350.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.004384/0.3503, allocations: 2.116 MB / 437.5 MB, free: 4.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.3503, allocations: 8.031 kB / 437.5 MB, free: 4.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002939/0.3506, allocations: 224 kB / 437.7 MB, free: 4.594 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008591/0.3515, allocations: 267.6 kB / 438 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002098/0.3536, allocations: 1.049 MB / 439 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.3537, allocations: 119.2 kB / 439.2 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002453/0.354, allocations: 163.9 kB / 439.3 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002809/0.3568, allocations: 1.491 MB / 440.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.693e-05/0.3569, allocations: 7.938 kB / 440.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/0.357, allocations: 60 kB / 440.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.273e-05/0.3571, allocations: 40 kB / 440.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002043/0.3591, allocations: 0.9746 MB / 441.9 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009878/0.369, allocations: 6.553 MB / 448.4 MB, free: 9.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000916/0.37, allocations: 412.1 kB / 448.8 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004585/0.3704, allocations: 218.1 kB / 449.1 MB, free: 8.781 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.897e-05/0.3705, allocations: 4.438 kB / 449.1 MB, free: 8.777 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005683/0.3711, allocations: 276.8 kB / 449.3 MB, free: 8.488 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.585e-06/0.3711, allocations: 0 / 449.3 MB, free: 8.488 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003978/0.3751, allocations: 1.78 MB / 451.1 MB, free: 6.613 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.3752, allocations: 166.8 kB / 451.3 MB, free: 6.414 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00192/0.3772, allocations: 1.273 MB / 452.5 MB, free: 5.125 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.023e-05/0.3772, allocations: 37.7 kB / 452.6 MB, free: 5.082 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000836/0.3781, allocations: 0.8973 MB / 453.5 MB, free: 4.176 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002065/0.3783, allocations: 218.2 kB / 453.7 MB, free: 3.961 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003241/0.3786, allocations: 222.7 kB / 453.9 MB, free: 3.738 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.3788, allocations: 353.9 kB / 454.3 MB, free: 3.387 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004795/0.3793, allocations: 234.5 kB / 454.5 MB, free: 3.156 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009555/0.3802, allocations: 0.7995 MB / 455.3 MB, free: 2.078 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00154/0.3818, allocations: 1.114 MB / 456.4 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/0.3818, allocations: 8 kB / 456.4 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002207/0.384, allocations: 1.174 MB / 457.6 MB, free: 15.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.444e-05/0.3841, allocations: 41.7 kB / 457.6 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.053e-05/0.3842, allocations: 23.75 kB / 457.6 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002547/0.3844, allocations: 70.27 kB / 457.7 MB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008099/0.3852, allocations: 267.6 kB / 458 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002369/0.3876, allocations: 2.781 MB / 460.8 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.3886, allocations: 67.92 kB / 460.8 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.234e-05/0.3888, allocations: 60.09 kB / 460.9 MB, free: 11.9 MB / 382.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.0006317/0.3894, allocations: 357.3 kB / 461.2 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001989/0.3896, allocations: 143 kB / 461.4 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001117/0.3907, allocations: 0.5489 MB / 461.9 MB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.3907, allocations: 11.98 kB / 461.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3908, allocations: 0 / 461.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.3908, allocations: 0 / 461.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002996/0.3938, allocations: 1.874 MB / 463.8 MB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.378e-06/0.3938, allocations: 7.984 kB / 463.8 MB, free: 8.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004408/0.3942, allocations: 103.8 kB / 463.9 MB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001682/0.3944, allocations: 49.62 kB / 464 MB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.512e-05/0.3945, allocations: 16 kB / 464 MB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002299/0.3968, allocations: 2.746 MB / 466.7 MB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/0.3968, allocations: 8.156 kB / 466.7 MB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001718/0.3985, allocations: 0.9323 MB / 467.7 MB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005353/0.3991, allocations: 260.2 kB / 467.9 MB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001461/0.3992, allocations: 16 kB / 467.9 MB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005141/0.3997, allocations: 31.97 kB / 468 MB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.3999, allocations: 55.83 kB / 468 MB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.441e-05/0.3999, allocations: 19.98 kB / 468 MB, free: 4.219 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001367/0.4013, allocations: 0.8461 MB / 468.9 MB, free: 3.371 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4013, allocations: 0 / 468.9 MB, free: 3.371 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001237/0.4026, allocations: 304 kB / 469.2 MB, free: 3.074 MB / 382.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.002079/0.4047, allocations: 1.505 MB / 470.7 MB, free: 1.492 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001786/0.4065, allocations: 0.9258 MB / 471.6 MB, free: 0.5352 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.375e-06/0.4065, allocations: 3.984 kB / 471.6 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007675/0.4072, allocations: 472.9 kB / 472.1 MB, free: 44 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001753/0.409, allocations: 339.9 kB / 472.4 MB, free: 15.72 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0179/0.4269, allocations: 10.93 MB / 483.3 MB, free: 3.965 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009572/0.4279, allocations: 1.178 MB / 484.5 MB, free: 2.754 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006854/0.4286, allocations: 171.3 kB / 484.7 MB, free: 2.582 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007246/0.4294, allocations: 0.5696 MB / 485.3 MB, free: 2.012 MB / 398.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4294, allocations: 0 / 485.3 MB, free: 2.012 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07959/0.509, allocations: 27.8 MB / 0.501 GB, free: 6.574 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.45, allocations: 7.812 kB / 0.501 GB, free: 6.566 MB / 430.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1)