Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.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.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_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.00142/0.00142, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008641/0.0008642, allocations: 102.4 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.433e-05/1.434e-05, allocations: 0 / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09537/0.0954, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3665/0.4619, allocations: 111.5 MB / 499 MB, free: 15.17 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.4622, allocations: 83.95 kB / 499.1 MB, free: 15.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4967/0.959, allocations: 92.76 MB / 0.578 GB, free: 94.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.959, allocations: 0 / 0.578 GB, free: 94.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002978/0.9593, allocations: 101.5 kB / 0.5781 GB, free: 94.32 MB / 426.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.01018/0.9695, allocations: 3.564 MB / 0.5816 GB, free: 92.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.9696, allocations: 7.812 kB / 0.5816 GB, free: 92.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00289/0.9725, allocations: 0.5092 MB / 0.5821 GB, free: 92.65 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00563/0.9781, allocations: 2.539 MB / 0.5846 GB, free: 92.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.9783, allocations: 116.5 kB / 0.5847 GB, free: 92.1 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008381/0.9792, allocations: 214 kB / 0.5849 GB, free: 92.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007296/0.9865, allocations: 3.693 MB / 0.5885 GB, free: 92.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008194/0.9947, allocations: 4.319 MB / 0.5927 GB, free: 90.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.333e-05/0.9948, allocations: 11.94 kB / 0.5927 GB, free: 90.66 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003386/0.9952, allocations: 3.969 kB / 0.5927 GB, free: 90.66 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000162/0.9953, allocations: 177.9 kB / 0.5929 GB, free: 90.64 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02486/1.02, allocations: 14.23 MB / 0.6068 GB, free: 83.49 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003615/1.024, allocations: 4.064 MB / 0.6108 GB, free: 80.67 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002057/1.026, allocations: 1.749 MB / 0.6125 GB, free: 80.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003182/1.026, allocations: 152.6 kB / 0.6126 GB, free: 79.96 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/1.026, allocations: 58.81 kB / 0.6127 GB, free: 79.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=201): time 4.599e-06/1.026, allocations: 4 kB / 0.6127 GB, free: 79.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=221): time 0.01197/1.038, allocations: 7.187 MB / 0.6197 GB, free: 76.92 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/1.038, allocations: 79.81 kB / 0.6198 GB, free: 76.85 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002552/1.041, allocations: 1.75 MB / 0.6215 GB, free: 76.13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001701/1.041, allocations: 25.7 kB / 0.6215 GB, free: 76.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007696/1.042, allocations: 1.608 MB / 0.6231 GB, free: 74.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000432/1.042, allocations: 0.7043 MB / 0.6238 GB, free: 74.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/1.043, allocations: 0 / 0.6238 GB, free: 74.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/1.043, allocations: 400.1 kB / 0.6242 GB, free: 73.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001336/1.044, allocations: 1.197 MB / 0.6253 GB, free: 73.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/1.046, allocations: 1.605 MB / 0.6269 GB, free: 72.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001643/1.047, allocations: 1.435 MB / 0.6283 GB, free: 71.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/1.047, allocations: 8 kB / 0.6283 GB, free: 71.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.005005/1.052, allocations: 3.666 MB / 0.6319 GB, free: 68.54 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/1.052, allocations: 12 kB / 0.6319 GB, free: 68.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/1.052, allocations: 8.25 kB / 0.6319 GB, free: 68.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001645/1.054, allocations: 0.7401 MB / 0.6326 GB, free: 67.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002025/1.056, allocations: 0.5256 MB / 0.6331 GB, free: 67.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007442/1.063, allocations: 8.345 MB / 0.6413 GB, free: 59.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002278/1.066, allocations: 66.78 kB / 0.6413 GB, free: 59.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002236/1.066, allocations: 91.45 kB / 0.6414 GB, free: 59.4 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 () * 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,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000433/1.066, allocations: 152.5 kB / 0.6416 GB, free: 59.25 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004417/1.071, allocations: 3.207 MB / 0.6447 GB, free: 56.47 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004741/1.071, allocations: 249 kB / 0.645 GB, free: 56.22 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004996/1.076, allocations: 3.428 MB / 0.6483 GB, free: 53.37 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/1.076, allocations: 24 kB / 0.6483 GB, free: 53.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/1.076, allocations: 7.125 kB / 0.6483 GB, free: 53.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.066e-05/1.076, allocations: 18.16 kB / 0.6483 GB, free: 53.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/1.087, allocations: 7.281 MB / 0.6555 GB, free: 47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.316e-06/1.087, allocations: 0 / 0.6555 GB, free: 47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001535/1.089, allocations: 395.5 kB / 0.6558 GB, free: 46.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001841/1.091, allocations: 0.7971 MB / 0.6566 GB, free: 45.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001394/1.091, allocations: 27.97 kB / 0.6566 GB, free: 45.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008035/1.099, allocations: 9.808 MB / 0.6662 GB, free: 35.53 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/1.099, allocations: 11.88 kB / 0.6662 GB, free: 35.52 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006533/1.106, allocations: 5.383 MB / 0.6715 GB, free: 29.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0016/1.107, allocations: 0.6022 MB / 0.6721 GB, free: 29.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003875/1.108, allocations: 11.98 kB / 0.6721 GB, free: 29.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/1.109, allocations: 95.84 kB / 0.6722 GB, free: 29.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003859/1.109, allocations: 185.6 kB / 0.6724 GB, free: 29.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/1.109, allocations: 63.98 kB / 0.6724 GB, free: 29.01 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001838/1.111, allocations: 1.317 MB / 0.6737 GB, free: 27.67 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.111, allocations: 0 / 0.6737 GB, free: 27.67 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002584/1.114, allocations: 0.7226 MB / 0.6744 GB, free: 26.95 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 () * 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.006949/1.121, allocations: 6.885 MB / 0.6811 GB, free: 19.98 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005212/1.126, allocations: 3.614 MB / 0.6847 GB, free: 16.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.571e-05/1.126, allocations: 2.25 kB / 0.6847 GB, free: 16.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003339/1.129, allocations: 2.34 MB / 0.6869 GB, free: 13.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003444/1.133, allocations: 0.5311 MB / 0.6875 GB, free: 13.39 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01383/1.147, allocations: 7.256 MB / 0.6946 GB, free: 6.109 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002267/1.149, allocations: 2.838 MB / 0.6973 GB, free: 3.246 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002118/1.151, allocations: 0.6359 MB / 0.6979 GB, free: 2.621 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001535/1.153, allocations: 1.366 MB / 0.6993 GB, free: 1.254 MB / 426.7 MB Notification: Performance of SimCode: time 7.71e-07/1.153, allocations: 0 / 0.6993 GB, free: 1.254 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3751/1.528, allocations: 61.72 MB / 0.7596 GB, free: 93.5 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001434/1.528, allocations: 169.4 kB / 0.7597 GB, free: 93.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.746/5.274, allocations: 4 kB / 0.7597 GB, free: 93.3 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat