Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_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.001154/0.001154, allocations: 199.4 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.2 MB / 245 MB, free: 5.898 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00105/0.00105, allocations: 105.9 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000245/0.0002451, allocations: 4 kB / 358 MB, free: 9.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2063/0.2065, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3213/0.5279, allocations: 120.4 MB / 0.5175 GB, free: 94.96 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.5282, allocations: 100.8 kB / 0.5176 GB, free: 94.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2905/0.8187, allocations: 136.6 MB / 0.651 GB, free: 5.793 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.975e-06/0.8187, allocations: 0 / 0.651 GB, free: 5.793 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005106/0.8193, allocations: 123.9 kB / 0.6511 GB, free: 5.672 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01659/0.8359, allocations: 5.341 MB / 0.6563 GB, free: 256 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/0.8359, allocations: 8.031 kB / 0.6563 GB, free: 248 kB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002646/0.8386, allocations: 0.6865 MB / 0.657 GB, free: 15.55 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005683/0.8443, allocations: 1.008 MB / 0.658 GB, free: 14.53 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01158/0.8559, allocations: 4.551 MB / 0.6624 GB, free: 9.902 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000478/0.8564, allocations: 369.7 kB / 0.6628 GB, free: 9.539 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001731/0.8582, allocations: 475.9 kB / 0.6632 GB, free: 9.074 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01525/0.8734, allocations: 6.723 MB / 0.6698 GB, free: 2.156 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001317/0.8736, allocations: 4 kB / 0.6698 GB, free: 2.152 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006183/0.8742, allocations: 204 kB / 0.67 GB, free: 1.953 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002048/0.8744, allocations: 245.8 kB / 0.6702 GB, free: 1.711 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2114/1.086, allocations: 5.58 MB / 0.6757 GB, free: 50.61 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02885/1.115, allocations: 21.07 MB / 0.6963 GB, free: 46.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007709/1.122, allocations: 9.945 MB / 0.706 GB, free: 40.33 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007982/1.13, allocations: 5.712 MB / 0.7115 GB, free: 39.27 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/1.131, allocations: 65.58 kB / 0.7116 GB, free: 39.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=227): time 3.246e-06/1.131, allocations: 2.281 kB / 0.7116 GB, free: 39.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=234): time 0.01525/1.146, allocations: 10.03 MB / 0.7214 GB, free: 37.09 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/1.146, allocations: 80.45 kB / 0.7215 GB, free: 37.03 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003773/1.15, allocations: 2.648 MB / 0.7241 GB, free: 36.8 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001863/1.15, allocations: 67.14 kB / 0.7241 GB, free: 36.77 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001306/1.151, allocations: 2.155 MB / 0.7262 GB, free: 36.09 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000569/1.152, allocations: 0.7866 MB / 0.727 GB, free: 35.59 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/1.152, allocations: 46.88 kB / 0.7271 GB, free: 35.59 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/1.152, allocations: 406.3 kB / 0.7274 GB, free: 35.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001731/1.154, allocations: 1.306 MB / 0.7287 GB, free: 35.28 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001921/1.156, allocations: 1.874 MB / 0.7305 GB, free: 34.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001907/1.158, allocations: 1.592 MB / 0.7321 GB, free: 33.83 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/1.158, allocations: 7.25 kB / 0.7321 GB, free: 33.83 MB / 442.7 MB Notification: Performance of matching and sorting (n=327) (initialization): time 0.006093/1.164, allocations: 4.239 MB / 0.7362 GB, free: 32.12 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/1.164, allocations: 11.12 kB / 0.7363 GB, free: 32.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.373e-05/1.164, allocations: 21.38 kB / 0.7363 GB, free: 32.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001555/1.165, allocations: 0.6459 MB / 0.7369 GB, free: 31.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002179/1.168, allocations: 0.5638 MB / 0.7375 GB, free: 31.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008224/1.176, allocations: 10.22 MB / 0.7474 GB, free: 24.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002587/1.178, allocations: 112.1 kB / 0.7475 GB, free: 24.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002045/1.179, allocations: 99.31 kB / 0.7476 GB, free: 24.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 (277): * Single equations (assignments): 272 * 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 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002503/1.181, allocations: 1.607 MB / 0.7492 GB, free: 23.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005299/1.182, allocations: 315.9 kB / 0.7495 GB, free: 23.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005472/1.187, allocations: 4.003 MB / 0.7534 GB, free: 21.45 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/1.187, allocations: 22.25 kB / 0.7534 GB, free: 21.45 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/1.187, allocations: 11.47 kB / 0.7535 GB, free: 21.45 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.671e-05/1.187, allocations: 14.62 kB / 0.7535 GB, free: 21.45 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/1.2, allocations: 8.713 MB / 0.762 GB, free: 17.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/1.2, allocations: 3.516 kB / 0.762 GB, free: 17.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00151/1.201, allocations: 362.9 kB / 0.7623 GB, free: 17.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001925/1.203, allocations: 0.8304 MB / 0.7631 GB, free: 17.47 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001813/1.203, allocations: 60.89 kB / 0.7632 GB, free: 17.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01194/1.215, allocations: 14.68 MB / 0.7775 GB, free: 6.102 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.215, allocations: 7.156 kB / 0.7775 GB, free: 6.102 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008264/1.224, allocations: 6.014 MB / 0.7834 GB, free: 3.254 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001862/1.226, allocations: 0.7056 MB / 0.7841 GB, free: 2.801 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007672/1.226, allocations: 59.7 kB / 0.7842 GB, free: 2.766 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001752/1.228, allocations: 122.7 kB / 0.7843 GB, free: 2.738 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004001/1.229, allocations: 197.3 kB / 0.7845 GB, free: 2.707 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/1.229, allocations: 66.75 kB / 0.7845 GB, free: 2.691 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003097/1.232, allocations: 2.044 MB / 0.7865 GB, free: 1.914 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.232, allocations: 0 / 0.7865 GB, free: 1.914 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003332/1.235, allocations: 0.9986 MB / 0.7875 GB, free: 1.812 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (164): * Single equations (assignments): 158 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(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.00977/1.245, allocations: 7.502 MB / 0.7948 GB, free: 14.29 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005314/1.25, allocations: 3.958 MB / 0.7987 GB, free: 12.54 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/1.25, allocations: 0 / 0.7987 GB, free: 12.54 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003718/1.254, allocations: 2.71 MB / 0.8013 GB, free: 11.09 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00345/1.258, allocations: 0.8725 MB / 0.8022 GB, free: 10.88 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06024/1.318, allocations: 40.62 MB / 0.8419 GB, free: 7.207 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003301/1.321, allocations: 3.525 MB / 0.8453 GB, free: 4.523 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00268/1.324, allocations: 0.756 MB / 0.846 GB, free: 4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00225/1.326, allocations: 1.82 MB / 0.8478 GB, free: 2.312 MB / 490.7 MB Notification: Performance of SimCode: time 8.02e-07/1.326, allocations: 0 / 0.8478 GB, free: 2.312 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2884/1.614, allocations: 87.4 MB / 0.9332 GB, free: 83.57 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/1.615, allocations: 248.7 kB / 0.9334 GB, free: 83.24 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.158/5.773, allocations: 2.656 kB / 0.9334 GB, free: 83.24 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat