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.0008293/0.0008292, allocations: 93.88 kB / 17 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 196.8 kB / 17.91 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 246 MB, free: 11.95 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003044/0.0003046, allocations: 7.984 kB / 306.8 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1126, allocations: 51.5 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01133/0.1239, allocations: 10.5 MB / 368.8 MB, free: 3.426 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2611/0.3851, allocations: 3.594 MB / 372.4 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002494/0.3876, allocations: 67.62 kB / 372.5 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003004/0.3906, allocations: 0.6902 MB / 373.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004686/0.3953, allocations: 0.9509 MB / 374.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001549/0.3969, allocations: 301.7 kB / 374.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00757/0.4045, allocations: 4.367 MB / 378.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004122/0.4086, allocations: 2.277 MB / 381.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004265/0.4129, allocations: 1.416 MB / 382.5 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005561/0.4185, allocations: 1.908 MB / 384.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001202/0.4197, allocations: 211.4 kB / 384.6 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002287/0.422, allocations: 291.3 kB / 384.9 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001789/0.4238, allocations: 1.048 MB / 385.9 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002436/0.4263, allocations: 0.7487 MB / 386.7 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008406/0.4347, allocations: 5.287 MB / 392 MB, free: 4.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.179e-05/0.4347, allocations: 6.812 kB / 392 MB, free: 4.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.4348, allocations: 7.875 kB / 392 MB, free: 4.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000319/0.4351, allocations: 0 / 392 MB, free: 4.664 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.01257/0.4477, allocations: 3.696 MB / 395.7 MB, free: 2.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.4477, allocations: 7.938 kB / 395.7 MB, free: 2.539 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001962/0.4497, allocations: 446.9 kB / 396.1 MB, free: 2.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002062/0.4518, allocations: 475 kB / 396.6 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005088/0.4569, allocations: 2.253 MB / 398.8 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001701/0.4571, allocations: 234.5 kB / 399.1 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000533/0.4576, allocations: 306.6 kB / 399.4 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008922/0.4665, allocations: 4.359 MB / 403.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.38e-05/0.4667, allocations: 3.906 kB / 403.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003274/0.467, allocations: 127.1 kB / 403.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001578/0.4672, allocations: 141.9 kB / 404 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007007/0.4742, allocations: 3.771 MB / 407.8 MB, free: 8.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0242/0.4984, allocations: 13.59 MB / 421.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003942/0.5024, allocations: 2.899 MB / 424.2 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003094/0.5055, allocations: 1.7 MB / 425.9 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003192/0.5059, allocations: 126.4 kB / 426.1 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.044e-05/0.506, allocations: 55.88 kB / 426.1 MB, free: 6.109 MB / 334.1 MB Notification: Performance of pre-optimization done (n=164): time 4.518e-06/0.506, allocations: 2.078 kB / 426.1 MB, free: 6.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=180): time 0.02078/0.5268, allocations: 9.054 MB / 435.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/0.5269, allocations: 73.41 kB / 435.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004705/0.5316, allocations: 2.342 MB / 437.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004028/0.532, allocations: 57.7 kB / 437.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001457/0.5335, allocations: 1.472 MB / 439.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000847/0.5344, allocations: 0.5991 MB / 439.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.5345, allocations: 40 kB / 439.8 MB, free: 8.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002763/0.5348, allocations: 392.4 kB / 440.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002036/0.5368, allocations: 1.128 MB / 441.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002144/0.539, allocations: 1.572 MB / 442.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/0.5411, allocations: 1.342 MB / 444.2 MB, free: 3.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.378e-06/0.5411, allocations: 4 kB / 444.2 MB, free: 3.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006765/0.5479, allocations: 3.592 MB / 447.8 MB, free: 16 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/0.5479, allocations: 12 kB / 447.8 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.416e-05/0.548, allocations: 12.05 kB / 447.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002061/0.55, allocations: 0.8023 MB / 448.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001794/0.5519, allocations: 459.3 kB / 449.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/0.5623, allocations: 10.29 MB / 459.3 MB, free: 3.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002584/0.5649, allocations: 135.9 kB / 459.5 MB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002538/0.5652, allocations: 79.98 kB / 459.6 MB, free: 3.559 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.00257/0.5677, allocations: 1.09 MB / 460.6 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007608/0.5685, allocations: 253 kB / 460.9 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005615/0.5741, allocations: 3.298 MB / 464.2 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.941e-05/0.5742, allocations: 16 kB / 464.2 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.288e-05/0.5742, allocations: 11.94 kB / 464.2 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.766e-05/0.5742, allocations: 7.969 kB / 464.2 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/0.5864, allocations: 6.898 MB / 471.1 MB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.553e-06/0.5864, allocations: 0 / 471.1 MB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.5876, allocations: 303.8 kB / 471.4 MB, free: 7.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002229/0.5899, allocations: 0.9274 MB / 472.3 MB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001315/0.59, allocations: 39.98 kB / 472.4 MB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01245/0.6025, allocations: 13.45 MB / 485.8 MB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.6025, allocations: 4 kB / 485.8 MB, free: 8.188 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008024/0.6105, allocations: 4.868 MB / 490.7 MB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001534/0.6121, allocations: 0.5644 MB / 491.3 MB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003153/0.6124, allocations: 46.3 kB / 491.3 MB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.6136, allocations: 131.9 kB / 491.4 MB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000393/0.614, allocations: 157.8 kB / 491.6 MB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.6141, allocations: 47.98 kB / 491.6 MB, free: 2.297 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002687/0.6168, allocations: 1.61 MB / 493.3 MB, free: 0.6719 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6169, allocations: 0 / 493.3 MB, free: 0.6719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00236/0.6192, allocations: 0.7071 MB / 494 MB, free: 15.96 MB / 414.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.007657/0.6269, allocations: 5.492 MB / 499.5 MB, free: 10.4 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005127/0.632, allocations: 3.588 MB / 0.4913 GB, free: 6.711 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.632, allocations: 0 / 0.4913 GB, free: 6.711 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00357/0.6356, allocations: 2.515 MB / 0.4937 GB, free: 4.086 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003122/0.6388, allocations: 0.7029 MB / 0.4944 GB, free: 3.395 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03883/0.6776, allocations: 21.66 MB / 0.5156 GB, free: 12.41 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00238/0.68, allocations: 2.529 MB / 0.518 GB, free: 9.852 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002065/0.6821, allocations: 0.5827 MB / 0.5186 GB, free: 9.262 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0017/0.6838, allocations: 1.261 MB / 0.5198 GB, free: 8 MB / 446.1 MB Notification: Performance of SimCode: time 7.01e-07/0.6838, allocations: 4 kB / 0.5198 GB, free: 7.996 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3449/1.029, allocations: 64.18 MB / 0.5825 GB, free: 108.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/1.029, allocations: 226.6 kB / 0.5827 GB, free: 108 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.438/4.467, allocations: 0 / 0.5827 GB, free: 108 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