Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.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.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00118/0.001179, allocations: 88.39 kB / 16.31 MB, free: 6.453 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.001307/0.001307, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.412/1.412, allocations: 223.2 MB / 241.2 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000333/0.000333, allocations: 8 kB / 300.9 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1142, allocations: 50.41 MB / 351.3 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01198/0.1262, allocations: 10.45 MB / 361.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008794/0.135, allocations: 3.546 MB / 365.3 MB, free: 5.621 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002699/0.1378, allocations: 63.69 kB / 365.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002327/0.1402, allocations: 0.6834 MB / 366.1 MB, free: 4.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00422/0.1444, allocations: 0.9402 MB / 367 MB, free: 3.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.1456, allocations: 303.6 kB / 367.3 MB, free: 3.629 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2255/0.3711, allocations: 4.362 MB / 371.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004143/0.3753, allocations: 2.269 MB / 374 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002816/0.3781, allocations: 1.413 MB / 375.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004066/0.3822, allocations: 1.899 MB / 377.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009946/0.3833, allocations: 216.4 kB / 377.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001495/0.3848, allocations: 278.1 kB / 377.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001436/0.3862, allocations: 1.046 MB / 378.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001697/0.3879, allocations: 0.7483 MB / 379.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006312/0.3942, allocations: 5.28 MB / 384.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3943, allocations: 0 / 384.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3943, allocations: 0 / 384.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002001/0.3945, allocations: 1.125 kB / 384.8 MB, free: 8.543 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.009256/0.4037, allocations: 3.688 MB / 388.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.4038, allocations: 9.094 kB / 388.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001273/0.4051, allocations: 439.5 kB / 389 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001368/0.4065, allocations: 440.3 kB / 389.4 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004137/0.4106, allocations: 2.251 MB / 391.6 MB, free: 5.266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002088/0.4108, allocations: 239 kB / 391.9 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005319/0.4114, allocations: 305 kB / 392.2 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007994/0.4194, allocations: 4.354 MB / 396.5 MB, free: 4.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.768e-05/0.4195, allocations: 11.17 kB / 396.5 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002935/0.4198, allocations: 129.9 kB / 396.7 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001127/0.4199, allocations: 130.1 kB / 396.8 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006241/0.4261, allocations: 3.772 MB / 400.6 MB, free: 1.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02431/0.4505, allocations: 13.6 MB / 414.2 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003457/0.4539, allocations: 2.895 MB / 417 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002634/0.4566, allocations: 1.699 MB / 418.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000292/0.4569, allocations: 136.3 kB / 418.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.457, allocations: 51.11 kB / 418.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=164): time 2.735e-06/0.457, allocations: 0 / 418.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=180): time 0.01875/0.4757, allocations: 9.057 MB / 428 MB, free: 5.895 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.578e-05/0.4758, allocations: 73.41 kB / 428.1 MB, free: 5.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005114/0.481, allocations: 2.33 MB / 430.4 MB, free: 3.449 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000261/0.4812, allocations: 57.7 kB / 430.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001368/0.4826, allocations: 1.473 MB / 431.9 MB, free: 1.902 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006634/0.4833, allocations: 0.5958 MB / 432.5 MB, free: 1.309 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001841/0.4835, allocations: 40 kB / 432.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.4837, allocations: 385.4 kB / 432.9 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001989/0.4857, allocations: 1.129 MB / 434.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002335/0.488, allocations: 1.571 MB / 435.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002303/0.4904, allocations: 1.349 MB / 437 MB, free: 12.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.61e-05/0.4904, allocations: 4 kB / 437 MB, free: 12.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006726/0.4971, allocations: 3.584 MB / 440.6 MB, free: 9.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/0.4972, allocations: 12 kB / 440.6 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.408e-05/0.4972, allocations: 12 kB / 440.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002046/0.4993, allocations: 0.7986 MB / 441.4 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/0.501, allocations: 467.2 kB / 441.8 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/0.512, allocations: 10.29 MB / 452.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002779/0.5148, allocations: 131.9 kB / 452.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004685/0.5153, allocations: 82.25 kB / 452.3 MB, free: 12.6 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.003399/0.5187, allocations: 1.09 MB / 453.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001056/0.5198, allocations: 249 kB / 453.7 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006821/0.5266, allocations: 3.301 MB / 457 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-05/0.5267, allocations: 23.98 kB / 457 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.731e-05/0.5267, allocations: 4 kB / 457 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.096e-05/0.5267, allocations: 7.969 kB / 457 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0145/0.5412, allocations: 6.891 MB / 463.9 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.5413, allocations: 4 kB / 463.9 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.5426, allocations: 303.8 kB / 464.2 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002382/0.545, allocations: 0.9225 MB / 465.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001599/0.5451, allocations: 39.98 kB / 465.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01306/0.5582, allocations: 13.46 MB / 478.6 MB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.5583, allocations: 8.016 kB / 478.6 MB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009039/0.5673, allocations: 4.868 MB / 483.5 MB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002155/0.5695, allocations: 0.5682 MB / 484.1 MB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001112/0.5706, allocations: 43.98 kB / 484.1 MB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002112/0.5728, allocations: 135.9 kB / 484.2 MB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004682/0.5733, allocations: 153.7 kB / 484.4 MB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001618/0.5734, allocations: 47.98 kB / 484.4 MB, free: 11.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004102/0.5776, allocations: 1.613 MB / 486.1 MB, free: 9.707 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5776, allocations: 0 / 486.1 MB, free: 9.707 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004274/0.5818, allocations: 0.7031 MB / 486.8 MB, free: 9.004 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.009173/0.591, allocations: 5.492 MB / 492.2 MB, free: 3.438 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006622/0.5977, allocations: 3.589 MB / 495.8 MB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/0.5977, allocations: 4 kB / 495.8 MB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00413/0.6019, allocations: 2.51 MB / 498.4 MB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005395/0.6073, allocations: 0.6831 MB / 499 MB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05548/0.6628, allocations: 21.61 MB / 0.5084 GB, free: 5.516 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004131/0.667, allocations: 2.523 MB / 0.5109 GB, free: 2.965 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002736/0.6697, allocations: 0.5866 MB / 0.5115 GB, free: 2.371 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002478/0.6722, allocations: 1.253 MB / 0.5127 GB, free: 1.117 MB / 430.1 MB Notification: Performance of SimCode: time 2.013e-06/0.6723, allocations: 0 / 0.5127 GB, free: 1.117 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3276/0.9999, allocations: 63.99 MB / 0.5752 GB, free: 121.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002962/1, allocations: 226.9 kB / 0.5754 GB, free: 121.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.487/4.488, allocations: 0 / 0.5754 GB, free: 121.3 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat