Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00101/0.00101, allocations: 93.92 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001049/0.001049, allocations: 204.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002226/0.0002225, allocations: 8 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1111, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01052/0.1217, allocations: 9.583 MB / 367.8 MB, free: 4.145 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007579/0.1293, allocations: 3.743 MB / 371.5 MB, free: 404 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002001/0.1313, allocations: 59.69 kB / 371.6 MB, free: 344 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.209/0.3404, allocations: 0.7281 MB / 372.3 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00423/0.3446, allocations: 0.8977 MB / 373.2 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.346, allocations: 302.7 kB / 373.5 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005771/0.3518, allocations: 2.642 MB / 376.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003571/0.3554, allocations: 2.272 MB / 378.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003279/0.3587, allocations: 1.296 MB / 379.7 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004842/0.3635, allocations: 1.631 MB / 381.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001313/0.3649, allocations: 208.2 kB / 381.6 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001878/0.3667, allocations: 275.6 kB / 381.8 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001443/0.3682, allocations: 0.9855 MB / 382.8 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002423/0.3706, allocations: 0.752 MB / 383.6 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007417/0.3781, allocations: 5.236 MB / 388.8 MB, free: 6.777 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.3781, allocations: 0 / 388.8 MB, free: 6.777 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.3781, allocations: 4 kB / 388.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002508/0.3784, allocations: 1.25 kB / 388.8 MB, free: 6.773 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.0131/0.3915, allocations: 3.685 MB / 392.5 MB, free: 4.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.528e-05/0.3915, allocations: 8.25 kB / 392.5 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001867/0.3934, allocations: 444.6 kB / 392.9 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001965/0.3954, allocations: 471.2 kB / 393.4 MB, free: 4.297 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005691/0.4011, allocations: 2.276 MB / 395.7 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002968/0.4014, allocations: 235.1 kB / 395.9 MB, free: 3.371 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00086/0.4023, allocations: 304.7 kB / 396.2 MB, free: 3.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007842/0.4101, allocations: 4.333 MB / 400.5 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-05/0.4103, allocations: 15.44 kB / 400.5 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002982/0.4106, allocations: 122.8 kB / 400.7 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001663/0.4107, allocations: 133.5 kB / 400.8 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007405/0.4182, allocations: 3.768 MB / 404.6 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02473/0.4429, allocations: 13.54 MB / 418.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003404/0.4464, allocations: 2.904 MB / 421 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000268/0.4467, allocations: 125.5 kB / 421.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/0.4467, allocations: 51.88 kB / 421.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=164): time 4.548e-06/0.4467, allocations: 3.984 kB / 421.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=180): time 0.0186/0.4653, allocations: 9.127 MB / 430.3 MB, free: 2.875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.4654, allocations: 73.41 kB / 430.4 MB, free: 2.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003718/0.4692, allocations: 2.294 MB / 432.7 MB, free: 480 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003283/0.4695, allocations: 53.7 kB / 432.7 MB, free: 420 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001173/0.4707, allocations: 1.484 MB / 434.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006647/0.4714, allocations: 0.5995 MB / 434.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.4715, allocations: 40 kB / 434.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.4717, allocations: 385.9 kB / 435.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001807/0.4735, allocations: 1.144 MB / 436.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002012/0.4755, allocations: 1.578 MB / 438 MB, free: 11.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002003/0.4775, allocations: 1.353 MB / 439.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.325e-06/0.4775, allocations: 8 kB / 439.3 MB, free: 9.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006261/0.4838, allocations: 3.619 MB / 442.9 MB, free: 6.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.616e-05/0.4839, allocations: 15.95 kB / 442.9 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.699e-05/0.4839, allocations: 15.94 kB / 443 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001997/0.4859, allocations: 0.8032 MB / 443.8 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002004/0.4879, allocations: 451.3 kB / 444.2 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01052/0.4985, allocations: 10.52 MB / 454.7 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002665/0.5012, allocations: 131.8 kB / 454.9 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000292/0.5015, allocations: 80.06 kB / 454.9 MB, free: 9.348 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (220): * Single equations (assignments): 213 * 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%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002524/0.504, allocations: 1.08 MB / 456 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006635/0.5047, allocations: 249 kB / 456.3 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005821/0.5105, allocations: 3.343 MB / 459.6 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/0.5106, allocations: 20 kB / 459.6 MB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.5106, allocations: 4 kB / 459.6 MB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-05/0.5106, allocations: 11.97 kB / 459.6 MB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01266/0.5233, allocations: 6.864 MB / 466.5 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/0.5233, allocations: 4 kB / 466.5 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001282/0.5246, allocations: 295.6 kB / 466.8 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002339/0.527, allocations: 0.9275 MB / 467.7 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001589/0.5272, allocations: 47.98 kB / 467.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01272/0.5399, allocations: 13.73 MB / 481.5 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.5399, allocations: 4.031 kB / 481.5 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008173/0.5481, allocations: 5.062 MB / 486.6 MB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002044/0.5502, allocations: 0.5643 MB / 487.1 MB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008641/0.5511, allocations: 39.98 kB / 487.2 MB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/0.5528, allocations: 131.8 kB / 487.3 MB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005272/0.5534, allocations: 153.7 kB / 487.4 MB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/0.5535, allocations: 51.98 kB / 487.5 MB, free: 7.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003065/0.5566, allocations: 1.57 MB / 489.1 MB, free: 5.992 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5566, allocations: 0 / 489.1 MB, free: 5.992 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004029/0.5607, allocations: 0.7031 MB / 489.8 MB, free: 5.289 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.inertiaRotor.w,aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 137 * 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 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009071/0.5698, allocations: 6.126 MB / 495.9 MB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00604/0.5758, allocations: 3.615 MB / 499.5 MB, free: 11.35 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/0.5759, allocations: 4 kB / 499.5 MB, free: 11.35 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003745/0.5796, allocations: 2.533 MB / 0.4903 GB, free: 8.707 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004415/0.5841, allocations: 0.656 MB / 0.4909 GB, free: 8.062 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05338/0.6375, allocations: 29.79 MB / 0.52 GB, free: 8.859 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002559/0.6401, allocations: 2.588 MB / 0.5225 GB, free: 6.238 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002397/0.6425, allocations: 0.5866 MB / 0.5231 GB, free: 5.645 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001855/0.6444, allocations: 1.257 MB / 0.5243 GB, free: 4.387 MB / 446.1 MB Notification: Performance of SimCode: time 1.804e-06/0.6444, allocations: 0 / 0.5243 GB, free: 4.387 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3909/1.035, allocations: 63.58 MB / 0.5864 GB, free: 105.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001648/1.036, allocations: 217.5 kB / 0.5866 GB, free: 105.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.425/4.46, allocations: 0 / 0.5866 GB, free: 105.1 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat