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.001174/0.001174, allocations: 96.83 kB / 16.31 MB, free: 6.133 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.001234/0.001234, allocations: 177.1 kB / 17.2 MB, free: 6.016 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.534/1.534, allocations: 223.2 MB / 241.1 MB, free: 300 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002816/0.0002816, allocations: 8 kB / 300.8 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1264, allocations: 50.41 MB / 351.2 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01183/0.1383, allocations: 9.549 MB / 360.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009097/0.1475, allocations: 3.661 MB / 364.5 MB, free: 6.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002555/0.15, allocations: 67.69 kB / 364.5 MB, free: 6.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002839/0.1529, allocations: 0.7152 MB / 365.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003735/0.1567, allocations: 0.8996 MB / 366.1 MB, free: 4.973 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.1578, allocations: 311.5 kB / 366.4 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004412/0.1622, allocations: 2.624 MB / 369.1 MB, free: 2.039 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2368/0.399, allocations: 2.262 MB / 371.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003137/0.4022, allocations: 1.296 MB / 372.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003958/0.4062, allocations: 1.621 MB / 374.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001239/0.4075, allocations: 208.2 kB / 374.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001802/0.4093, allocations: 273.5 kB / 374.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001707/0.411, allocations: 0.9831 MB / 375.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001903/0.4129, allocations: 0.7494 MB / 376.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00749/0.4204, allocations: 5.225 MB / 381.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4204, allocations: 0 / 381.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4205, allocations: 0 / 381.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002739/0.4207, allocations: 0 / 381.7 MB, free: 9.25 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.01067/0.4314, allocations: 3.668 MB / 385.3 MB, free: 7.137 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.4315, allocations: 8.875 kB / 385.3 MB, free: 7.137 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001986/0.4335, allocations: 442.8 kB / 385.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001836/0.4353, allocations: 440 kB / 386.2 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005181/0.4405, allocations: 2.269 MB / 388.5 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002338/0.4408, allocations: 231.5 kB / 388.7 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006337/0.4414, allocations: 319.6 kB / 389 MB, free: 5.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008156/0.4496, allocations: 4.328 MB / 393.3 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.62e-05/0.4497, allocations: 3.781 kB / 393.3 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002997/0.45, allocations: 127 kB / 393.5 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001474/0.4502, allocations: 131.6 kB / 393.6 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006492/0.4567, allocations: 3.773 MB / 397.4 MB, free: 3.578 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02362/0.4803, allocations: 13.55 MB / 410.9 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003662/0.484, allocations: 2.895 MB / 413.8 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002825/0.4843, allocations: 130.3 kB / 413.9 MB, free: 4.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.213e-05/0.4844, allocations: 51.88 kB / 414 MB, free: 3.961 MB / 318.1 MB Notification: Performance of pre-optimization done (n=164): time 3.447e-06/0.4844, allocations: 0 / 414 MB, free: 3.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=180): time 0.01893/0.5033, allocations: 9.132 MB / 423.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.5034, allocations: 73.34 kB / 423.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003884/0.5073, allocations: 2.287 MB / 425.5 MB, free: 8.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003867/0.5077, allocations: 57.7 kB / 425.5 MB, free: 8.188 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001069/0.5088, allocations: 1.478 MB / 427 MB, free: 6.699 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006731/0.5095, allocations: 0.5989 MB / 427.6 MB, free: 6.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.5096, allocations: 40 kB / 427.7 MB, free: 6.066 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.5098, allocations: 389.8 kB / 428 MB, free: 5.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001844/0.5117, allocations: 1.14 MB / 429.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002086/0.5138, allocations: 1.575 MB / 430.7 MB, free: 2.793 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002006/0.5158, allocations: 1.353 MB / 432.1 MB, free: 1.445 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.5158, allocations: 4 kB / 432.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.00614/0.522, allocations: 3.628 MB / 435.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/0.522, allocations: 11.98 kB / 435.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.7e-05/0.5221, allocations: 16 kB / 435.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00196/0.524, allocations: 0.7891 MB / 436.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/0.5258, allocations: 459.3 kB / 437 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.536, allocations: 10.51 MB / 447.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002506/0.5386, allocations: 131.8 kB / 447.6 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002421/0.5388, allocations: 72 kB / 447.7 MB, free: 1.129 MB / 350.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.002591/0.5414, allocations: 1.097 MB / 448.8 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006554/0.5421, allocations: 249.2 kB / 449 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005658/0.5478, allocations: 3.336 MB / 452.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.655e-05/0.5478, allocations: 19.95 kB / 452.4 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/0.5478, allocations: 11.94 kB / 452.4 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.881e-05/0.5478, allocations: 7.969 kB / 452.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01215/0.56, allocations: 6.859 MB / 459.3 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.348e-06/0.56, allocations: 4 kB / 459.3 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/0.5613, allocations: 307.5 kB / 459.6 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002356/0.5637, allocations: 0.9119 MB / 460.5 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001457/0.5639, allocations: 43.98 kB / 460.5 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01372/0.5776, allocations: 13.74 MB / 474.3 MB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.233e-06/0.5777, allocations: 7.891 kB / 474.3 MB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008792/0.5865, allocations: 5.061 MB / 479.4 MB, free: 300 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002049/0.5885, allocations: 0.5682 MB / 479.9 MB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003608/0.5889, allocations: 39.98 kB / 480 MB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00137/0.5903, allocations: 131.9 kB / 480.1 MB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004219/0.5907, allocations: 153.7 kB / 480.2 MB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001241/0.5908, allocations: 47.98 kB / 480.3 MB, free: 15.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00262/0.5935, allocations: 1.57 MB / 481.9 MB, free: 13.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5935, allocations: 3.938 kB / 481.9 MB, free: 13.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002741/0.5962, allocations: 0.6992 MB / 482.6 MB, free: 13.05 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.007901/0.6041, allocations: 6.122 MB / 488.7 MB, free: 6.836 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005799/0.61, allocations: 3.619 MB / 492.3 MB, free: 3.109 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/0.61, allocations: 4 kB / 492.3 MB, free: 3.105 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003727/0.6137, allocations: 2.522 MB / 494.8 MB, free: 492 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004157/0.6179, allocations: 0.6592 MB / 495.5 MB, free: 15.83 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05695/0.6749, allocations: 29.74 MB / 0.5129 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002751/0.6777, allocations: 2.583 MB / 0.5154 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002561/0.6803, allocations: 0.5905 MB / 0.516 GB, free: 13.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002047/0.6823, allocations: 1.253 MB / 0.5172 GB, free: 12.22 MB / 446.1 MB Notification: Performance of SimCode: time 1.674e-06/0.6823, allocations: 4 kB / 0.5172 GB, free: 12.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.415/1.097, allocations: 63.39 MB / 0.5791 GB, free: 118 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002257/1.098, allocations: 221.8 kB / 0.5794 GB, free: 117.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.496/4.594, allocations: 0 / 0.5794 GB, free: 117.7 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