Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 181 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008964/0.0008964, allocations: 87.55 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002637/0.0002637, allocations: 8 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2314, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1269/0.3584, allocations: 112.1 MB / 0.5017 GB, free: 300 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.3586, allocations: 87.95 kB / 0.5018 GB, free: 212 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.39/0.7486, allocations: 93.57 MB / 0.5931 GB, free: 20.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.7487, allocations: 0 / 0.5931 GB, free: 20.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002617/0.7489, allocations: 99.81 kB / 0.5932 GB, free: 20.53 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.008454/0.7574, allocations: 3.981 MB / 0.5971 GB, free: 16.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.7575, allocations: 8.031 kB / 0.5971 GB, free: 16.48 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001034/0.7585, allocations: 0.5018 MB / 0.5976 GB, free: 15.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001243/0.7598, allocations: 0.5025 MB / 0.5981 GB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004074/0.7638, allocations: 2.56 MB / 0.6006 GB, free: 12.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.764, allocations: 267 kB / 0.6009 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004288/0.7644, allocations: 363.9 kB / 0.6012 GB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006718/0.7711, allocations: 4.921 MB / 0.606 GB, free: 7.156 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.11e-05/0.7712, allocations: 11.91 kB / 0.606 GB, free: 7.145 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003128/0.7716, allocations: 152 kB / 0.6062 GB, free: 6.996 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001254/0.7717, allocations: 179 kB / 0.6063 GB, free: 6.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006045/0.7777, allocations: 4.049 MB / 0.6103 GB, free: 2.766 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02571/0.8035, allocations: 14.94 MB / 0.6249 GB, free: 3.492 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005339/0.8089, allocations: 4.219 MB / 0.629 GB, free: 14.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004088/0.8093, allocations: 147 kB / 0.6291 GB, free: 14.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.77e-05/0.8094, allocations: 68.5 kB / 0.6292 GB, free: 14.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=201): time 4.348e-06/0.8094, allocations: 0 / 0.6292 GB, free: 14.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=221): time 0.02121/0.8306, allocations: 10.21 MB / 0.6392 GB, free: 4.402 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.8307, allocations: 77.34 kB / 0.6393 GB, free: 4.312 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004076/0.8348, allocations: 2.217 MB / 0.6414 GB, free: 2.078 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004456/0.8353, allocations: 61.7 kB / 0.6415 GB, free: 2.012 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001256/0.8366, allocations: 1.596 MB / 0.643 GB, free: 404 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008329/0.8374, allocations: 0.7393 MB / 0.6438 GB, free: 15.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.8375, allocations: 48 kB / 0.6438 GB, free: 15.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002042/0.8378, allocations: 402.5 kB / 0.6442 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002118/0.8399, allocations: 1.301 MB / 0.6455 GB, free: 13.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002374/0.8423, allocations: 1.741 MB / 0.6472 GB, free: 11.99 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002283/0.8446, allocations: 1.556 MB / 0.6487 GB, free: 10.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.8446, allocations: 4 kB / 0.6487 GB, free: 10.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.007148/0.8518, allocations: 4.052 MB / 0.6526 GB, free: 6.348 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.839e-05/0.8519, allocations: 12 kB / 0.6527 GB, free: 6.336 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.296e-05/0.8519, allocations: 12 kB / 0.6527 GB, free: 6.324 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002211/0.8541, allocations: 0.7583 MB / 0.6534 GB, free: 5.551 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002556/0.8567, allocations: 0.5305 MB / 0.6539 GB, free: 5.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2297/1.086, allocations: 8.932 MB / 0.6626 GB, free: 73.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002288/1.089, allocations: 117.5 kB / 0.6628 GB, free: 73.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003984/1.089, allocations: 90.55 kB / 0.6628 GB, free: 73.95 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002257/1.091, allocations: 1.215 MB / 0.664 GB, free: 73.84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007049/1.092, allocations: 275.8 kB / 0.6643 GB, free: 73.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005808/1.098, allocations: 3.778 MB / 0.668 GB, free: 73.67 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/1.098, allocations: 22.75 kB / 0.668 GB, free: 73.67 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/1.098, allocations: 6.125 kB / 0.668 GB, free: 73.67 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/1.098, allocations: 10.55 kB / 0.668 GB, free: 73.67 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01482/1.113, allocations: 8.071 MB / 0.6759 GB, free: 73.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-05/1.113, allocations: 7.25 kB / 0.6759 GB, free: 73.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001756/1.115, allocations: 393.2 kB / 0.6763 GB, free: 73.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002196/1.117, allocations: 0.8074 MB / 0.6771 GB, free: 73.03 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002462/1.117, allocations: 58.34 kB / 0.6771 GB, free: 73.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00996/1.127, allocations: 10.47 MB / 0.6873 GB, free: 67.87 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/1.127, allocations: 6.312 kB / 0.6874 GB, free: 67.87 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00915/1.136, allocations: 5.842 MB / 0.6931 GB, free: 67.23 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001835/1.138, allocations: 0.6441 MB / 0.6937 GB, free: 67.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007472/1.139, allocations: 51.7 kB / 0.6937 GB, free: 67.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001806/1.141, allocations: 128 kB / 0.6939 GB, free: 67.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004158/1.141, allocations: 182.8 kB / 0.694 GB, free: 67.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001642/1.141, allocations: 67.7 kB / 0.6941 GB, free: 67.04 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002683/1.144, allocations: 1.701 MB / 0.6958 GB, free: 66.89 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.144, allocations: 0 / 0.6958 GB, free: 66.89 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0029/1.147, allocations: 0.8343 MB / 0.6966 GB, free: 66.89 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 26,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008253/1.155, allocations: 7.343 MB / 0.7037 GB, free: 63.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005512/1.161, allocations: 3.94 MB / 0.7076 GB, free: 62.23 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/1.161, allocations: 3.344 kB / 0.7076 GB, free: 62.23 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003361/1.164, allocations: 2.504 MB / 0.71 GB, free: 61.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003899/1.168, allocations: 0.7389 MB / 0.7108 GB, free: 60.85 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04275/1.211, allocations: 31.97 MB / 0.742 GB, free: 40.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002993/1.214, allocations: 2.836 MB / 0.7448 GB, free: 39.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002539/1.217, allocations: 0.6823 MB / 0.7454 GB, free: 38.64 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001947/1.218, allocations: 1.4 MB / 0.7468 GB, free: 37.36 MB / 426.7 MB Notification: Performance of SimCode: time 5.61e-07/1.219, allocations: 0 / 0.7468 GB, free: 37.36 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1128/1.331, allocations: 74.71 MB / 0.8197 GB, free: 7.059 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/1.332, allocations: 218.2 kB / 0.82 GB, free: 6.824 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.015/5.347, allocations: 0 / 0.82 GB, free: 6.824 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat