Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.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.IMC_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009937/0.0009939, allocations: 101.8 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001044/0.001044, allocations: 206.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002785/0.0002786, allocations: 7.984 kB / 306.7 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1293, allocations: 51.5 MB / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL): time 0.009382/0.1387, allocations: 7.638 MB / 365.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006734/0.1455, allocations: 2.932 MB / 368.8 MB, free: 3.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001264/0.1468, allocations: 43.75 kB / 368.8 MB, free: 3.328 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001327/0.1482, allocations: 0.5326 MB / 369.4 MB, free: 2.793 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002022/0.1502, allocations: 0.6504 MB / 370 MB, free: 2.141 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007366/0.1509, allocations: 219.7 kB / 370.2 MB, free: 1.926 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002968/0.1539, allocations: 1.704 MB / 371.9 MB, free: 220 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2811/0.435, allocations: 1.375 MB / 373.3 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002379/0.4374, allocations: 0.8213 MB / 374.1 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002966/0.4404, allocations: 1.064 MB / 375.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005196/0.441, allocations: 130.3 kB / 375.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001032/0.442, allocations: 202.9 kB / 375.5 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009532/0.443, allocations: 0.639 MB / 376.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008302/0.4438, allocations: 0.4926 MB / 376.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005016/0.4488, allocations: 3.242 MB / 379.9 MB, free: 9.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4489, allocations: 3.875 kB / 379.9 MB, free: 9.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4489, allocations: 0 / 379.9 MB, free: 9.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001342/0.449, allocations: 0 / 379.9 MB, free: 9.406 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.006607/0.4556, allocations: 2.438 MB / 382.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.777e-05/0.4557, allocations: 8.875 kB / 382.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000671/0.4564, allocations: 300.3 kB / 382.6 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001266/0.4577, allocations: 331.3 kB / 383 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003179/0.4608, allocations: 1.46 MB / 384.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/0.461, allocations: 151.3 kB / 384.6 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004151/0.4615, allocations: 206.4 kB / 384.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005253/0.4667, allocations: 2.704 MB / 387.5 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-05/0.4668, allocations: 8.953 kB / 387.5 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002173/0.467, allocations: 80.94 kB / 387.6 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001596/0.4672, allocations: 94.95 kB / 387.6 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004509/0.4717, allocations: 2.325 MB / 390 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01328/0.485, allocations: 8.417 MB / 398.4 MB, free: 0.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002118/0.4871, allocations: 1.798 MB / 400.2 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00027/0.4874, allocations: 124.3 kB / 400.3 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.787e-05/0.4875, allocations: 48.03 kB / 400.4 MB, free: 15.24 MB / 318.1 MB Notification: Performance of pre-optimization done (n=104): time 3.287e-06/0.4875, allocations: 0 / 400.4 MB, free: 15.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.01494/0.5025, allocations: 6.311 MB / 406.7 MB, free: 9.555 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001504/0.5026, allocations: 64.41 kB / 406.7 MB, free: 9.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002471/0.5051, allocations: 1.466 MB / 408.2 MB, free: 8.004 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001221/0.5053, allocations: 45.7 kB / 408.2 MB, free: 7.953 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008032/0.5061, allocations: 0.9918 MB / 409.2 MB, free: 6.953 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003985/0.5065, allocations: 420.1 kB / 409.6 MB, free: 6.547 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.558e-05/0.5066, allocations: 26.19 kB / 409.7 MB, free: 6.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.5068, allocations: 361.9 kB / 410 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/0.508, allocations: 0.7417 MB / 410.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.5096, allocations: 1.067 MB / 411.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.5111, allocations: 0.8925 MB / 412.7 MB, free: 3.332 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.834e-06/0.5111, allocations: 4 kB / 412.7 MB, free: 3.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00441/0.5155, allocations: 2.369 MB / 415.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.986e-05/0.5156, allocations: 8 kB / 415.1 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/0.5156, allocations: 13.41 kB / 415.1 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000977/0.5166, allocations: 403.2 kB / 415.5 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.5179, allocations: 335.5 kB / 415.8 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005896/0.5238, allocations: 4.753 MB / 420.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/0.5259, allocations: 87.91 kB / 420.7 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001578/0.526, allocations: 52 kB / 420.7 MB, free: 11.03 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 152 * 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: 2 * 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: 2 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002195/0.5282, allocations: 0.7121 MB / 421.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000544/0.5288, allocations: 158 kB / 421.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004157/0.5329, allocations: 2.168 MB / 423.8 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/0.533, allocations: 18.52 kB / 423.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.533, allocations: 4 kB / 423.8 MB, free: 7.945 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.533, allocations: 7.922 kB / 423.8 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008709/0.5417, allocations: 4.565 MB / 428.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.5418, allocations: 0 / 428.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009655/0.5427, allocations: 223.7 kB / 428.6 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001239/0.544, allocations: 471.1 kB / 429 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/0.5441, allocations: 35.97 kB / 429.1 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006531/0.5507, allocations: 6.274 MB / 435.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.5507, allocations: 0 / 435.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005738/0.5565, allocations: 3.354 MB / 438.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001328/0.5578, allocations: 399 kB / 439.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000264/0.5581, allocations: 27.95 kB / 439.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008683/0.559, allocations: 87.91 kB / 439.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002856/0.5593, allocations: 100.8 kB / 439.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.199e-05/0.5594, allocations: 39.94 kB / 439.3 MB, free: 7.766 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001767/0.5611, allocations: 1.009 MB / 440.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5611, allocations: 0 / 440.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001793/0.5629, allocations: 456 kB / 440.8 MB, free: 6.312 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00605/0.569, allocations: 4.547 MB / 445.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00424/0.5733, allocations: 2.287 MB / 447.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/0.5733, allocations: 5.875 kB / 447.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002526/0.5758, allocations: 1.503 MB / 449.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002688/0.5785, allocations: 410.4 kB / 449.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03003/0.6086, allocations: 19.73 MB / 469.3 MB, free: 8.961 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001707/0.6103, allocations: 1.865 MB / 471.1 MB, free: 7.066 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001451/0.6118, allocations: 397.5 kB / 471.5 MB, free: 6.672 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/0.6129, allocations: 0.8 MB / 472.3 MB, free: 5.871 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.6129, allocations: 0 / 472.3 MB, free: 5.871 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07086/0.6838, allocations: 39.69 MB / 0.5 GB, free: 14.61 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001733/0.684, allocations: 211.3 kB / 0.5002 GB, free: 14.38 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.95/3.634, allocations: 0 / 0.5002 GB, free: 14.38 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat