Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009491/0.000949, allocations: 88.39 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 223.2 MB / 241.2 MB, free: 5.18 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002684/0.0002686, allocations: 2.844 kB / 300.9 MB, free: 5.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1043, allocations: 50.43 MB / 351.4 MB, free: 11.21 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.01508/0.1194, allocations: 14.84 MB / 366.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01117/0.1306, allocations: 5.306 MB / 371.5 MB, free: 6.992 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003979/0.1347, allocations: 99.56 kB / 371.6 MB, free: 6.895 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004321/0.139, allocations: 1.018 MB / 372.6 MB, free: 5.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006272/0.1453, allocations: 1.492 MB / 374.1 MB, free: 4.371 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002928/0.1483, allocations: 0.6901 MB / 374.8 MB, free: 3.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009044/0.1573, allocations: 6.372 MB / 381.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00706/0.1644, allocations: 3.549 MB / 384.7 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004379/0.1688, allocations: 2.039 MB / 386.8 MB, free: 7.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005071/0.174, allocations: 2.618 MB / 389.4 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001707/0.1757, allocations: 324 kB / 389.7 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003053/0.1788, allocations: 0.5544 MB / 390.2 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002426/0.1812, allocations: 1.292 MB / 391.5 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00276/0.184, allocations: 1.14 MB / 392.7 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.1955, allocations: 8.586 MB / 401.3 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.1956, allocations: 3.938 kB / 401.3 MB, free: 9.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.1956, allocations: 0 / 401.3 MB, free: 9.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000475/0.1961, allocations: 0 / 401.3 MB, free: 9.074 MB / 334.1 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.01757/0.2137, allocations: 5.539 MB / 406.8 MB, free: 3.453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.2137, allocations: 12.03 kB / 406.8 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002656/0.2164, allocations: 0.6748 MB / 407.5 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006069/0.2225, allocations: 1.063 MB / 408.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008371/0.2309, allocations: 3.412 MB / 412 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000453/0.2314, allocations: 357.8 kB / 412.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001712/0.2331, allocations: 491.7 kB / 412.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01927/0.2524, allocations: 6.849 MB / 419.6 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001529/0.2526, allocations: 11.84 kB / 419.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008623/0.2534, allocations: 196 kB / 419.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002449/0.2537, allocations: 241.8 kB / 420.1 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01324/0.2669, allocations: 5.926 MB / 426 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2609/0.5279, allocations: 21.01 MB / 447 MB, free: 47.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007531/0.5355, allocations: 9.943 MB / 457 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003532/0.539, allocations: 2.507 MB / 459.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009661/0.5487, allocations: 6.511 MB / 466 MB, free: 32.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/0.5488, allocations: 55.97 kB / 466 MB, free: 32.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 3.396e-06/0.5488, allocations: 0 / 466 MB, free: 32.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=226): time 0.01557/0.5644, allocations: 9.79 MB / 475.8 MB, free: 23.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/0.5644, allocations: 77.41 kB / 475.9 MB, free: 23.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003711/0.5682, allocations: 2.961 MB / 478.9 MB, free: 20.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001682/0.5684, allocations: 65.7 kB / 478.9 MB, free: 20.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001045/0.5694, allocations: 2.158 MB / 481.1 MB, free: 18.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004612/0.5699, allocations: 0.7564 MB / 481.8 MB, free: 17.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.57, allocations: 48 kB / 481.9 MB, free: 17.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.5701, allocations: 411.2 kB / 482.3 MB, free: 17.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001648/0.5718, allocations: 1.294 MB / 483.6 MB, free: 16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001832/0.5736, allocations: 1.928 MB / 485.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001871/0.5755, allocations: 1.591 MB / 487.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.5755, allocations: 8 kB / 487.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.005633/0.5812, allocations: 4.253 MB / 491.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.863e-05/0.5812, allocations: 14.34 kB / 491.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.578e-05/0.5812, allocations: 16 kB / 491.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00212/0.5834, allocations: 0.7833 MB / 492.2 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001941/0.5853, allocations: 0.5656 MB / 492.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009093/0.5944, allocations: 10.04 MB / 0.491 GB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00252/0.597, allocations: 104 kB / 0.4911 GB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002419/0.5972, allocations: 104 kB / 0.4912 GB, free: 11.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (278): * Single equations (assignments): 273 * 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.003354/0.6006, allocations: 1.612 MB / 0.4928 GB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000741/0.6013, allocations: 316.2 kB / 0.4931 GB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006419/0.6078, allocations: 3.916 MB / 0.4969 GB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.978e-05/0.6078, allocations: 24.08 kB / 0.4969 GB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-05/0.6078, allocations: 12 kB / 0.4969 GB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-05/0.6079, allocations: 15.95 kB / 0.4969 GB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01483/0.6227, allocations: 8.567 MB / 0.5053 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.6228, allocations: 0 / 0.5053 GB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001501/0.6243, allocations: 347.8 kB / 0.5056 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002818/0.6271, allocations: 0.9502 MB / 0.5066 GB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001484/0.6273, allocations: 55.97 kB / 0.5066 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0148/0.6421, allocations: 14.42 MB / 0.5207 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.6421, allocations: 4.031 kB / 0.5207 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008977/0.6511, allocations: 5.706 MB / 0.5263 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00168/0.6528, allocations: 0.6846 MB / 0.527 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004169/0.6532, allocations: 55.94 kB / 0.527 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/0.6545, allocations: 127.9 kB / 0.5271 GB, free: 5.879 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00049/0.655, allocations: 185.8 kB / 0.5273 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001437/0.6552, allocations: 59.98 kB / 0.5274 GB, free: 5.637 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003342/0.6585, allocations: 2.034 MB / 0.5294 GB, free: 3.602 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6585, allocations: 0 / 0.5294 GB, free: 3.602 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003106/0.6617, allocations: 0.9427 MB / 0.5303 GB, free: 2.664 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (156): * Single equations (assignments): 150 * 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,(2,100.0%) 26,(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.008719/0.6704, allocations: 6.387 MB / 0.5365 GB, free: 12.19 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006037/0.6764, allocations: 3.901 MB / 0.5403 GB, free: 8.223 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.6765, allocations: 0 / 0.5403 GB, free: 8.223 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003946/0.6804, allocations: 2.652 MB / 0.5429 GB, free: 5.496 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00411/0.6846, allocations: 0.8938 MB / 0.5438 GB, free: 4.609 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05554/0.7401, allocations: 28.99 MB / 0.5721 GB, free: 6.078 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003541/0.7437, allocations: 3.426 MB / 0.5754 GB, free: 2.617 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002708/0.7464, allocations: 0.7565 MB / 0.5762 GB, free: 1.855 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002411/0.7488, allocations: 1.839 MB / 0.578 GB, free: 16 kB / 446.1 MB Notification: Performance of SimCode: time 1.493e-06/0.7489, allocations: 0 / 0.578 GB, free: 16 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2923/1.041, allocations: 81.52 MB / 0.6576 GB, free: 76.38 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/1.041, allocations: 302.4 kB / 0.6579 GB, free: 76.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.166/5.207, allocations: 0 / 0.6579 GB, free: 76.02 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat