Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0023/0.002301, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.581/1.581, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001119/0.001119, allocations: 94.2 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.404e-05/4.468e-05, allocations: 7.984 kB / 344.6 MB, free: 7.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1253, allocations: 51.48 MB / 396.1 MB, free: 3.84 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.498/0.6234, allocations: 167.5 MB / 0.5503 GB, free: 6.551 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003273/0.6238, allocations: 101.7 kB / 0.5504 GB, free: 6.496 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.702/4.326, allocations: 0.8941 GB / 1.445 GB, free: 32.84 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.904e-06/4.326, allocations: 0 / 1.445 GB, free: 32.84 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.002491/4.328, allocations: 479.3 kB / 1.445 GB, free: 32.77 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.0824/4.411, allocations: 19.54 MB / 1.464 GB, free: 20.47 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 8.907e-05/4.411, allocations: 8.031 kB / 1.464 GB, free: 20.46 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05717/4.468, allocations: 9.694 MB / 1.474 GB, free: 11.76 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6067/5.075, allocations: 16.22 MB / 1.489 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001586/5.077, allocations: 0.6523 MB / 1.49 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01125/5.088, allocations: 1.177 MB / 1.491 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.07277/5.161, allocations: 27.27 MB / 1.518 GB, free: 28.75 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1031/5.264, allocations: 30.47 MB / 1.548 GB, free: 26.48 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001123/5.265, allocations: 28.88 kB / 1.548 GB, free: 26.48 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007841/5.273, allocations: 13.22 kB / 1.548 GB, free: 26.48 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001887/5.275, allocations: 1.483 MB / 1.549 GB, free: 26.43 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2115/5.486, allocations: 105.9 MB / 1.652 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5592/6.046, allocations: 49.77 MB / 1.701 GB, free: 85.5 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02806/6.074, allocations: 9.477 MB / 1.71 GB, free: 85.37 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08551/6.159, allocations: 23.21 MB / 1.733 GB, free: 84.16 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003312/6.16, allocations: 132 kB / 1.733 GB, free: 84.11 MB / 0.573 GB Notification: Performance of pre-optimization done (n=892): time 7.517e-05/6.16, allocations: 0.5625 kB / 1.733 GB, free: 84.11 MB / 0.573 GB Notification: Performance of matching and sorting (n=904): time 0.1548/6.315, allocations: 40.16 MB / 1.772 GB, free: 78.29 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.472e-05/6.315, allocations: 171.2 kB / 1.773 GB, free: 78.18 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02202/6.337, allocations: 6.221 MB / 1.779 GB, free: 77.67 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.002731/6.34, allocations: 29.86 kB / 1.779 GB, free: 77.64 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.008529/6.348, allocations: 8.673 MB / 1.787 GB, free: 73.04 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.006196/6.354, allocations: 2.926 MB / 1.79 GB, free: 71.11 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002138/6.357, allocations: 0 / 1.79 GB, free: 71.11 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.00115/6.358, allocations: 0.7728 MB / 1.791 GB, free: 70.78 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01787/6.376, allocations: 6.1 MB / 1.797 GB, free: 70.75 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0228/6.399, allocations: 9.626 MB / 1.806 GB, free: 66.57 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04198/6.441, allocations: 10.8 MB / 1.817 GB, free: 64.2 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004427/6.441, allocations: 36.94 kB / 1.817 GB, free: 64.2 MB / 0.573 GB Notification: Performance of matching and sorting (n=1468) (initialization): time 0.07565/6.517, allocations: 21.68 MB / 1.838 GB, free: 57.18 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001657/6.517, allocations: 54.91 kB / 1.838 GB, free: 57.18 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002735/6.517, allocations: 115.3 kB / 1.838 GB, free: 57.18 MB / 0.573 GB Notification: Tearing is skipped for strong component 1 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.002195/6.519, allocations: 0.7978 MB / 1.839 GB, free: 56.96 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01157/6.531, allocations: 2.444 MB / 1.841 GB, free: 56.88 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009285/6.54, allocations: 11.05 MB / 1.852 GB, free: 48.39 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01235/6.553, allocations: 468.3 kB / 1.852 GB, free: 48.38 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003733/6.557, allocations: 0.5059 MB / 1.853 GB, free: 48.29 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1214): * Single equations (assignments): 1207 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005406/6.562, allocations: 443.5 kB / 1.853 GB, free: 48.06 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04051/6.602, allocations: 17.27 MB / 1.87 GB, free: 35.42 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00469/6.607, allocations: 0.8356 MB / 1.871 GB, free: 34.57 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0455/6.653, allocations: 18.66 MB / 1.889 GB, free: 19.61 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.993e-05/6.653, allocations: 95.44 kB / 1.889 GB, free: 19.52 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.129e-05/6.653, allocations: 44 kB / 1.889 GB, free: 19.48 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002241/6.653, allocations: 47.38 kB / 1.889 GB, free: 19.48 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6573/7.311, allocations: 35.38 MB / 1.924 GB, free: 82.34 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.626e-05/7.311, allocations: 7.938 kB / 1.924 GB, free: 82.34 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007863/7.319, allocations: 1.493 MB / 1.925 GB, free: 82.34 MB / 0.573 GB Notification: Tearing is skipped for strong component 14 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.002848/7.321, allocations: 0.8389 MB / 1.926 GB, free: 82.28 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002329/7.324, allocations: 69.56 kB / 1.926 GB, free: 82.28 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01511/7.339, allocations: 15.1 MB / 1.941 GB, free: 73.62 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.495e-05/7.339, allocations: 14.59 kB / 1.941 GB, free: 73.62 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06121/7.4, allocations: 27.8 MB / 1.968 GB, free: 71.07 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008753/7.409, allocations: 2.238 MB / 1.97 GB, free: 70.98 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004852/7.414, allocations: 26.73 kB / 1.97 GB, free: 70.98 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01025/7.424, allocations: 439.7 kB / 1.971 GB, free: 70.98 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00383/7.428, allocations: 0.7915 MB / 1.972 GB, free: 70.96 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001411/7.43, allocations: 261.8 kB / 1.972 GB, free: 70.96 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01172/7.441, allocations: 4.599 MB / 1.976 GB, free: 70.75 MB / 0.573 GB Notification: Performance of sort global known variables: time 7.32e-07/7.441, allocations: 1.219 kB / 1.976 GB, free: 70.75 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.023/7.464, allocations: 3.14 MB / 1.979 GB, free: 70.75 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,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 (701): * Single equations (assignments): 693 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.07071/7.535, allocations: 29.91 MB / 2.009 GB, free: 66.78 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03501/7.57, allocations: 15.59 MB / 2.024 GB, free: 63.46 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-05/7.57, allocations: 2.156 kB / 2.024 GB, free: 63.46 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01905/7.589, allocations: 8.575 MB / 2.032 GB, free: 59.74 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01688/7.606, allocations: 1.762 MB / 2.034 GB, free: 59.36 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1368/7.743, allocations: 38.65 MB / 2.072 GB, free: 31.36 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03644/7.78, allocations: 13.46 MB / 2.085 GB, free: 21.34 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.02128/7.801, allocations: 3.896 MB / 2.089 GB, free: 18.78 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02042/7.821, allocations: 7.73 MB / 2.096 GB, free: 11.55 MB / 0.573 GB Notification: Performance of SimCode: time 1.272e-06/7.822, allocations: 0 / 2.096 GB, free: 11.55 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.887/9.708, allocations: 258.5 MB / 2.349 GB, free: 31.18 MB / 0.6043 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003907/9.709, allocations: 206.4 kB / 2.349 GB, free: 30.9 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/20.81, allocations: 2.438 kB / 2.349 GB, free: 30.9 MB / 0.6043 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat