Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001561/0.001565, allocations: 182.7 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.027/2.027, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001152/0.001152, allocations: 93.83 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004841/0.0004843, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.3661, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start): time 0.01385/0.38, allocations: 9.507 MB / 384.1 MB, free: 38.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00979/0.3899, allocations: 3.721 MB / 387.9 MB, free: 35.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00216/0.3921, allocations: 52.44 kB / 387.9 MB, free: 35.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002962/0.3951, allocations: 0.7336 MB / 388.6 MB, free: 34.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004349/0.3994, allocations: 0.8919 MB / 389.5 MB, free: 33.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00157/0.401, allocations: 309.5 kB / 389.8 MB, free: 33.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005682/0.4067, allocations: 2.645 MB / 392.5 MB, free: 30.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003328/0.4101, allocations: 2.205 MB / 394.7 MB, free: 28.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002449/0.4126, allocations: 1.292 MB / 396 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003342/0.416, allocations: 1.638 MB / 397.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00109/0.4171, allocations: 216 kB / 397.8 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001789/0.4189, allocations: 275.9 kB / 398.1 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001369/0.4203, allocations: 0.9893 MB / 399.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00134/0.4217, allocations: 0.7498 MB / 399.8 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006626/0.4283, allocations: 5.216 MB / 405.1 MB, free: 18.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.4284, allocations: 0 / 405.1 MB, free: 18.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4284, allocations: 0 / 405.1 MB, free: 18.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001935/0.4286, allocations: 0 / 405.1 MB, free: 18.29 MB / 298.7 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.01156/0.4402, allocations: 3.659 MB / 408.7 MB, free: 14.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.4402, allocations: 11.97 kB / 408.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001546/0.4418, allocations: 446.4 kB / 409.2 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001882/0.4437, allocations: 447 kB / 409.6 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006019/0.4497, allocations: 2.165 MB / 411.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002556/0.45, allocations: 230.2 kB / 412 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001017/0.4511, allocations: 311.9 kB / 412.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01199/0.4631, allocations: 4.322 MB / 416.6 MB, free: 6.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001419/0.4633, allocations: 7.984 kB / 416.6 MB, free: 6.492 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005954/0.4639, allocations: 132 kB / 416.8 MB, free: 6.363 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000163/0.464, allocations: 134 kB / 416.9 MB, free: 6.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01107/0.4751, allocations: 3.767 MB / 420.7 MB, free: 2.453 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03635/0.5115, allocations: 13.56 MB / 434.2 MB, free: 4.535 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006183/0.5178, allocations: 2.906 MB / 437.1 MB, free: 1.469 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004663/0.5183, allocations: 130.4 kB / 437.2 MB, free: 1.324 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.272e-05/0.5183, allocations: 51.88 kB / 437.3 MB, free: 1.266 MB / 314.7 MB Notification: Performance of pre-optimization done (n=164): time 4.669e-06/0.5183, allocations: 4 kB / 437.3 MB, free: 1.262 MB / 314.7 MB Notification: Performance of matching and sorting (n=180): time 0.03413/0.5525, allocations: 9.351 MB / 446.7 MB, free: 7.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.5526, allocations: 69.41 kB / 446.7 MB, free: 7.598 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005387/0.558, allocations: 2.283 MB / 449 MB, free: 5.285 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004583/0.5585, allocations: 57.7 kB / 449.1 MB, free: 5.223 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001493/0.56, allocations: 1.366 MB / 450.4 MB, free: 3.844 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001019/0.561, allocations: 0.6045 MB / 451 MB, free: 3.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002116/0.5613, allocations: 40 kB / 451.1 MB, free: 3.191 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002658/0.5616, allocations: 390.7 kB / 451.4 MB, free: 2.801 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003293/0.5649, allocations: 1.14 MB / 452.6 MB, free: 1.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003681/0.5686, allocations: 1.578 MB / 454.2 MB, free: 15.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003825/0.5724, allocations: 1.353 MB / 455.5 MB, free: 14.56 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-05/0.5725, allocations: 4 kB / 455.5 MB, free: 14.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.01077/0.5833, allocations: 3.462 MB / 459 MB, free: 11.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.398e-05/0.5833, allocations: 16.09 kB / 459 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.33e-05/0.5834, allocations: 15.94 kB / 459 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003587/0.587, allocations: 0.7903 MB / 459.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00372/0.5907, allocations: 463.3 kB / 460.3 MB, free: 9.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01811/0.6089, allocations: 10.52 MB / 470.8 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003296/0.6122, allocations: 123.9 kB / 470.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003528/0.6126, allocations: 79.98 kB / 471 MB, free: 14.38 MB / 362.7 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.003042/0.6157, allocations: 1.084 MB / 472.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008394/0.6165, allocations: 252.9 kB / 472.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01035/0.6269, allocations: 3.333 MB / 475.6 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.96e-05/0.627, allocations: 24 kB / 475.7 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.761e-05/0.627, allocations: 7.938 kB / 475.7 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-05/0.6271, allocations: 15.95 kB / 475.7 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02125/0.6483, allocations: 6.867 MB / 482.6 MB, free: 2.633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/0.6484, allocations: 0 / 482.6 MB, free: 2.633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002762/0.6512, allocations: 307.8 kB / 482.9 MB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00446/0.6556, allocations: 0.9273 MB / 483.8 MB, free: 1.383 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003691/0.6561, allocations: 39.98 kB / 483.8 MB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02206/0.6781, allocations: 13.72 MB / 497.5 MB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.6782, allocations: 0 / 497.5 MB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01446/0.6926, allocations: 5.062 MB / 0.4908 GB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00219/0.6949, allocations: 0.5682 MB / 0.4914 GB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007835/0.6957, allocations: 36 kB / 0.4914 GB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002747/0.6985, allocations: 131.9 kB / 0.4915 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007652/0.6993, allocations: 157.7 kB / 0.4917 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000214/0.6995, allocations: 44 kB / 0.4917 GB, free: 12.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004368/0.7039, allocations: 1.578 MB / 0.4933 GB, free: 10.96 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.7039, allocations: 0 / 0.4933 GB, free: 10.96 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003887/0.7078, allocations: 0.7031 MB / 0.494 GB, free: 10.26 MB / 394.7 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.01737/0.7252, allocations: 6.12 MB / 0.4999 GB, free: 4.039 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.013/0.7383, allocations: 3.625 MB / 0.5035 GB, free: 316 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.479e-05/0.7383, allocations: 4 kB / 0.5035 GB, free: 312 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.287/1.025, allocations: 2.523 MB / 0.5059 GB, free: 122.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005408/1.031, allocations: 0.6507 MB / 0.5066 GB, free: 122.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06514/1.096, allocations: 29.72 MB / 0.5356 GB, free: 100.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003823/1.1, allocations: 2.543 MB / 0.5381 GB, free: 97.83 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003617/1.104, allocations: 1.265 MB / 0.5393 GB, free: 96.56 MB / 394.7 MB Notification: Performance of SimCode: time 2.254e-06/1.104, allocations: 0 / 0.5393 GB, free: 96.56 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.772/5.876, allocations: 175.4 MB / 0.7107 GB, free: 106.7 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat