Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001384/0.001384, allocations: 177 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.576/1.576, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009229/0.0009229, allocations: 82.25 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.823e-05/1.83e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08415/0.08419, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3441/0.4283, allocations: 111.3 MB / 474.5 MB, free: 464 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/0.4286, allocations: 85.55 kB / 474.6 MB, free: 420 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4304/0.859, allocations: 92.39 MB / 0.5537 GB, free: 87.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.8591, allocations: 0 / 0.5537 GB, free: 87.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002981/0.8594, allocations: 101.7 kB / 0.5538 GB, free: 87.22 MB / 410.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.009593/0.869, allocations: 3.55 MB / 0.5572 GB, free: 85.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.869, allocations: 11.62 kB / 0.5573 GB, free: 85.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002683/0.8717, allocations: 0.497 MB / 0.5577 GB, free: 85.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005324/0.8771, allocations: 2.551 MB / 0.5602 GB, free: 85.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.8773, allocations: 113 kB / 0.5603 GB, free: 85.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/0.8784, allocations: 212.5 kB / 0.5605 GB, free: 85.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007512/0.886, allocations: 3.695 MB / 0.5641 GB, free: 85.03 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007993/0.894, allocations: 4.328 MB / 0.5684 GB, free: 84.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-05/0.8941, allocations: 17.28 kB / 0.5684 GB, free: 84.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003177/0.8944, allocations: 3.844 kB / 0.5684 GB, free: 84.54 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001419/0.8946, allocations: 176.6 kB / 0.5686 GB, free: 84.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02333/0.9179, allocations: 14.24 MB / 0.5825 GB, free: 79.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00369/0.9217, allocations: 4.063 MB / 0.5864 GB, free: 76.71 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002168/0.9239, allocations: 1.755 MB / 0.5881 GB, free: 76.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003354/0.9242, allocations: 148.1 kB / 0.5883 GB, free: 75.99 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.9243, allocations: 58.53 kB / 0.5883 GB, free: 75.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=201): time 4.288e-06/0.9243, allocations: 0 / 0.5883 GB, free: 75.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=221): time 0.01207/0.9363, allocations: 7.191 MB / 0.5954 GB, free: 72.99 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.9364, allocations: 78.72 kB / 0.5954 GB, free: 72.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002707/0.9392, allocations: 1.746 MB / 0.5971 GB, free: 72.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003602/0.9395, allocations: 25.7 kB / 0.5972 GB, free: 72.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008066/0.9403, allocations: 1.607 MB / 0.5987 GB, free: 70.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005073/0.9409, allocations: 0.7098 MB / 0.5994 GB, free: 70.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.941, allocations: 0 / 0.5994 GB, free: 70.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.9411, allocations: 396.5 kB / 0.5998 GB, free: 70.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/0.9425, allocations: 1.192 MB / 0.601 GB, free: 69.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001546/0.9441, allocations: 1.601 MB / 0.6025 GB, free: 68.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001615/0.9457, allocations: 1.443 MB / 0.604 GB, free: 68.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.246e-06/0.9457, allocations: 6.125 kB / 0.604 GB, free: 68.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.005026/0.9507, allocations: 3.661 MB / 0.6075 GB, free: 66.72 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.9508, allocations: 14.38 kB / 0.6075 GB, free: 66.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.86e-05/0.9508, allocations: 15.45 kB / 0.6076 GB, free: 66.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001554/0.9524, allocations: 0.7531 MB / 0.6083 GB, free: 66.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001967/0.9543, allocations: 0.5358 MB / 0.6088 GB, free: 66.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007192/0.9616, allocations: 8.337 MB / 0.617 GB, free: 58.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00224/0.9638, allocations: 72.94 kB / 0.617 GB, free: 58.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003759/0.9642, allocations: 95.59 kB / 0.6171 GB, free: 58.75 MB / 410.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 () * 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.0004512/0.9647, allocations: 160.1 kB / 0.6173 GB, free: 58.59 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004722/0.9694, allocations: 3.206 MB / 0.6204 GB, free: 55.81 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006778/0.9701, allocations: 245 kB / 0.6206 GB, free: 55.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004814/0.9749, allocations: 3.415 MB / 0.624 GB, free: 52.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.975, allocations: 31.19 kB / 0.624 GB, free: 52.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/0.975, allocations: 8 kB / 0.624 GB, free: 52.69 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.166e-05/0.975, allocations: 9.703 kB / 0.624 GB, free: 52.69 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01161/0.9866, allocations: 7.285 MB / 0.6311 GB, free: 46.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.9867, allocations: 0 / 0.6311 GB, free: 46.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/0.9883, allocations: 395.1 kB / 0.6315 GB, free: 46.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002067/0.9904, allocations: 0.8075 MB / 0.6323 GB, free: 45.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002743/0.9907, allocations: 27.5 kB / 0.6323 GB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008042/0.9988, allocations: 9.814 MB / 0.6419 GB, free: 36.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.9988, allocations: 4 kB / 0.6419 GB, free: 36.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006844/1.006, allocations: 5.388 MB / 0.6472 GB, free: 31.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/1.007, allocations: 0.5923 MB / 0.6478 GB, free: 30.93 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000457/1.008, allocations: 19.61 kB / 0.6478 GB, free: 30.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/1.009, allocations: 88.03 kB / 0.6479 GB, free: 30.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003647/1.009, allocations: 190.5 kB / 0.648 GB, free: 30.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/1.009, allocations: 66.7 kB / 0.6481 GB, free: 30.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001708/1.011, allocations: 1.311 MB / 0.6494 GB, free: 29.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.011, allocations: 0 / 0.6494 GB, free: 29.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00242/1.014, allocations: 0.7185 MB / 0.6501 GB, free: 28.78 MB / 410.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 () * 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,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006898/1.021, allocations: 6.888 MB / 0.6568 GB, free: 22.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005626/1.026, allocations: 3.632 MB / 0.6604 GB, free: 18.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/1.026, allocations: 0 / 0.6604 GB, free: 18.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003204/1.03, allocations: 2.343 MB / 0.6626 GB, free: 16.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003427/1.033, allocations: 0.5399 MB / 0.6632 GB, free: 16.06 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/1.047, allocations: 7.259 MB / 0.6703 GB, free: 8.781 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002157/1.049, allocations: 2.846 MB / 0.673 GB, free: 5.91 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002127/1.051, allocations: 0.6207 MB / 0.6736 GB, free: 5.301 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001573/1.053, allocations: 1.374 MB / 0.675 GB, free: 3.926 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/1.053, allocations: 0 / 0.675 GB, free: 3.926 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3053/1.358, allocations: 61.81 MB / 0.7354 GB, free: 84.48 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001732/1.359, allocations: 164.9 kB / 0.7355 GB, free: 84.29 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.813/5.172, allocations: 0 / 0.7355 GB, free: 84.29 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat does not exist to compare? outputFormat=mat