Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.009915/0.009915, allocations: 174.8 kB / 15.12 MB, free: 6 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.975/1.975, allocations: 194.5 MB / 210.3 MB, free: 11.38 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001966/0.001966, allocations: 120.6 kB / 255.6 MB, free: 14.52 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4441/0.4441, allocations: 40 MB / 340.8 MB, free: 14.99 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005719/0.000572, allocations: 12 kB / 406.3 MB, free: 13.43 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3462, allocations: 54.86 MB / 461.1 MB, free: 24.54 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5466/0.8929, allocations: 117.5 MB / 0.5651 GB, free: 45.88 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/0.8932, allocations: 82.67 kB / 0.5652 GB, free: 45.88 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2416/1.135, allocations: 61.73 MB / 0.6255 GB, free: 24.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.5e-06/1.135, allocations: 0 / 0.6255 GB, free: 24.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003661/1.135, allocations: 83.81 kB / 0.6256 GB, free: 24.36 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.01242/1.148, allocations: 3.269 MB / 0.6288 GB, free: 21.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/1.148, allocations: 8.031 kB / 0.6288 GB, free: 21.25 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001698/1.15, allocations: 408.5 kB / 0.6292 GB, free: 21.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001586/1.151, allocations: 407.5 kB / 0.6295 GB, free: 20.61 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007139/1.158, allocations: 2.165 MB / 0.6317 GB, free: 18.94 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/1.158, allocations: 212.5 kB / 0.6319 GB, free: 18.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006597/1.159, allocations: 286 kB / 0.6321 GB, free: 18.63 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008899/1.168, allocations: 3.677 MB / 0.6357 GB, free: 16.06 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001296/1.168, allocations: 11.89 kB / 0.6357 GB, free: 16.05 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004395/1.169, allocations: 120 kB / 0.6358 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001683/1.169, allocations: 133.5 kB / 0.636 GB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007786/1.177, allocations: 2.992 MB / 0.6389 GB, free: 12.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02867/1.205, allocations: 11.59 MB / 0.6502 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006553/1.212, allocations: 2.233 MB / 0.6524 GB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006168/1.213, allocations: 223.4 kB / 0.6526 GB, free: 14.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.534e-05/1.213, allocations: 43.88 kB / 0.6527 GB, free: 14.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=141): time 3.938e-06/1.213, allocations: 0 / 0.6527 GB, free: 14.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=155): time 0.03485/1.248, allocations: 8.337 MB / 0.6608 GB, free: 5.824 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/1.248, allocations: 64.72 kB / 0.6609 GB, free: 5.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00446/1.252, allocations: 1.704 MB / 0.6625 GB, free: 4.008 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004401/1.253, allocations: 53.7 kB / 0.6626 GB, free: 3.949 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00149/1.254, allocations: 1.351 MB / 0.6639 GB, free: 2.582 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008727/1.255, allocations: 0.5236 MB / 0.6644 GB, free: 2.051 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002158/1.255, allocations: 36 kB / 0.6644 GB, free: 2.016 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002275/1.256, allocations: 381.9 kB / 0.6648 GB, free: 1.637 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00255/1.258, allocations: 0.8979 MB / 0.6657 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002877/1.261, allocations: 1.33 MB / 0.667 GB, free: 15.22 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002953/1.264, allocations: 1.111 MB / 0.6681 GB, free: 14.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/1.264, allocations: 4 kB / 0.6681 GB, free: 14.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.008845/1.273, allocations: 2.934 MB / 0.6709 GB, free: 11.16 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.097e-05/1.273, allocations: 15.94 kB / 0.6709 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-05/1.273, allocations: 16.34 kB / 0.671 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00192/1.275, allocations: 454.1 kB / 0.6714 GB, free: 10.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003817/1.279, allocations: 459.2 kB / 0.6718 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01351/1.292, allocations: 7.188 MB / 0.6789 GB, free: 2.633 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003076/1.295, allocations: 127.7 kB / 0.679 GB, free: 2.508 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003577/1.296, allocations: 75.98 kB / 0.679 GB, free: 2.434 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (203): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002865/1.299, allocations: 0.8985 MB / 0.6799 GB, free: 1.527 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007982/1.3, allocations: 209.5 kB / 0.6801 GB, free: 1.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009625/1.309, allocations: 3.003 MB / 0.6831 GB, free: 14.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.679e-05/1.309, allocations: 16 kB / 0.6831 GB, free: 14.28 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.139e-05/1.309, allocations: 8 kB / 0.6831 GB, free: 14.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.719e-05/1.309, allocations: 7.969 kB / 0.6831 GB, free: 14.26 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02033/1.33, allocations: 6.132 MB / 0.6891 GB, free: 8.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.948e-05/1.33, allocations: 4 kB / 0.6891 GB, free: 8.016 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002283/1.332, allocations: 235.6 kB / 0.6893 GB, free: 7.785 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004181/1.336, allocations: 0.8373 MB / 0.6901 GB, free: 6.938 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003424/1.337, allocations: 43.92 kB / 0.6902 GB, free: 6.895 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02166/1.358, allocations: 10.53 MB / 0.7004 GB, free: 11.95 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.606e-05/1.358, allocations: 11.97 kB / 0.7005 GB, free: 11.94 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01276/1.371, allocations: 4.391 MB / 0.7047 GB, free: 7.414 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001853/1.373, allocations: 490.5 kB / 0.7052 GB, free: 6.914 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005587/1.374, allocations: 43.92 kB / 0.7053 GB, free: 6.871 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002227/1.376, allocations: 99.83 kB / 0.7054 GB, free: 6.773 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004806/1.376, allocations: 125.1 kB / 0.7055 GB, free: 6.652 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001792/1.377, allocations: 40.09 kB / 0.7055 GB, free: 6.613 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003698/1.38, allocations: 1.317 MB / 0.7068 GB, free: 5.273 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.91e-07/1.38, allocations: 0 / 0.7068 GB, free: 5.273 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003761/1.384, allocations: 0.625 MB / 0.7074 GB, free: 4.648 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (111): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01749/1.402, allocations: 5.82 MB / 0.7131 GB, free: 14.73 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01052/1.412, allocations: 2.661 MB / 0.7157 GB, free: 12.03 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/1.412, allocations: 0 / 0.7157 GB, free: 12.03 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006104/1.418, allocations: 1.686 MB / 0.7173 GB, free: 10.31 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005363/1.424, allocations: 498.4 kB / 0.7178 GB, free: 9.82 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3911/1.815, allocations: 26.54 MB / 0.7437 GB, free: 130.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003499/1.819, allocations: 2.263 MB / 0.7459 GB, free: 129.7 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002977/1.822, allocations: 464.2 kB / 0.7464 GB, free: 129.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002966/1.825, allocations: 1.124 MB / 0.7475 GB, free: 129.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.293e-06/1.825, allocations: 3.188 kB / 0.7475 GB, free: 129.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1351/1.96, allocations: 56.65 MB / 0.8028 GB, free: 117.8 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001985/1.96, allocations: 229.2 kB / 0.803 GB, free: 117.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.467/6.426, allocations: 2.812 kB / 0.803 GB, free: 117.6 MB / 490.7 MB