Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001522/0.001522, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008631/0.0008631, allocations: 91.8 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.852e-05/1.845e-05, allocations: 4 kB / 343.8 MB, free: 8.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09691/0.09695, allocations: 51.48 MB / 395.3 MB, free: 4.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3806/0.4776, allocations: 103.2 MB / 498.5 MB, free: 6.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/0.4779, allocations: 83.83 kB / 498.6 MB, free: 5.977 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1079/0.5859, allocations: 40.77 MB / 0.5267 GB, free: 2.102 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.5859, allocations: 0 / 0.5267 GB, free: 2.102 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001848/0.5861, allocations: 51.94 kB / 0.5268 GB, free: 2.051 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.004978/0.5911, allocations: 2.005 MB / 0.5287 GB, free: 15.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.5911, allocations: 8.031 kB / 0.5287 GB, free: 15.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001403/0.5925, allocations: 301.1 kB / 0.529 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00359/0.5962, allocations: 1.412 MB / 0.5304 GB, free: 14.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.471e-05/0.5963, allocations: 56 kB / 0.5304 GB, free: 14.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000529/0.5968, allocations: 115.9 kB / 0.5305 GB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003748/0.6006, allocations: 1.745 MB / 0.5323 GB, free: 12.31 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004495/0.6051, allocations: 2.063 MB / 0.5343 GB, free: 10.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.013e-05/0.6052, allocations: 15.91 kB / 0.5343 GB, free: 10.15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002594/0.6055, allocations: 0 / 0.5343 GB, free: 10.15 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.188e-05/0.6056, allocations: 75.5 kB / 0.5344 GB, free: 10.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01199/0.6176, allocations: 7.141 MB / 0.5413 GB, free: 2.746 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001873/0.6195, allocations: 1.242 MB / 0.5425 GB, free: 1.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.6206, allocations: 0.7202 MB / 0.5432 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003116/0.621, allocations: 129.8 kB / 0.5434 GB, free: 0.5586 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.469e-05/0.621, allocations: 47.28 kB / 0.5434 GB, free: 0.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=87): time 2.865e-06/0.6211, allocations: 4 kB / 0.5434 GB, free: 0.4961 MB / 410.7 MB Notification: Performance of matching and sorting (n=103): time 0.007406/0.6285, allocations: 3.931 MB / 0.5473 GB, free: 12.51 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.6285, allocations: 64.72 kB / 0.5473 GB, free: 12.44 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001662/0.6302, allocations: 0.9929 MB / 0.5483 GB, free: 11.43 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.6303, allocations: 25.7 kB / 0.5483 GB, free: 11.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005827/0.6309, allocations: 0.8961 MB / 0.5492 GB, free: 10.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003017/0.6312, allocations: 354.8 kB / 0.5495 GB, free: 10.14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.681e-05/0.6313, allocations: 3.938 kB / 0.5495 GB, free: 10.14 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.6314, allocations: 349.9 kB / 0.5499 GB, free: 9.789 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008071/0.6322, allocations: 0.5844 MB / 0.5504 GB, free: 9.203 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00092/0.6332, allocations: 0.869 MB / 0.5513 GB, free: 8.215 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009922/0.6342, allocations: 0.7323 MB / 0.552 GB, free: 7.484 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-06/0.6342, allocations: 4 kB / 0.552 GB, free: 7.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003941/0.6381, allocations: 2.25 MB / 0.5542 GB, free: 5.215 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.033e-05/0.6382, allocations: 19.94 kB / 0.5542 GB, free: 5.195 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/0.6382, allocations: 8 kB / 0.5542 GB, free: 5.188 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002121/0.6403, allocations: 0.7511 MB / 0.555 GB, free: 4.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000901/0.6412, allocations: 243.6 kB / 0.5552 GB, free: 4.191 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01032/0.6516, allocations: 8.174 MB / 0.5632 GB, free: 11.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001206/0.6528, allocations: 63.97 kB / 0.5632 GB, free: 11.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001939/0.653, allocations: 52 kB / 0.5633 GB, free: 11.67 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(6,77.8%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003037/0.6533, allocations: 133.2 kB / 0.5634 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002894/0.6563, allocations: 1.666 MB / 0.565 GB, free: 9.848 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000381/0.6566, allocations: 134.4 kB / 0.5652 GB, free: 9.715 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003126/0.6598, allocations: 1.779 MB / 0.5669 GB, free: 7.914 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-05/0.6598, allocations: 12 kB / 0.5669 GB, free: 7.902 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.6598, allocations: 4 kB / 0.5669 GB, free: 7.898 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/0.6599, allocations: 3.984 kB / 0.5669 GB, free: 7.895 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006599/0.6665, allocations: 3.625 MB / 0.5705 GB, free: 4.195 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.6665, allocations: 4 kB / 0.5705 GB, free: 4.191 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008425/0.6674, allocations: 200.1 kB / 0.5707 GB, free: 3.996 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001209/0.6686, allocations: 466.9 kB / 0.5711 GB, free: 3.527 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-05/0.6687, allocations: 15.98 kB / 0.5711 GB, free: 3.512 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.31/0.9787, allocations: 5.898 MB / 0.5769 GB, free: 96.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/0.9787, allocations: 1.312 kB / 0.5769 GB, free: 96.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006855/0.9856, allocations: 2.744 MB / 0.5796 GB, free: 95.86 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001384/0.987, allocations: 346.7 kB / 0.5799 GB, free: 95.76 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006087/0.9877, allocations: 10.16 kB / 0.5799 GB, free: 95.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001853/0.9896, allocations: 59.98 kB / 0.58 GB, free: 95.76 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004221/0.99, allocations: 83.06 kB / 0.58 GB, free: 95.76 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001641/0.9902, allocations: 29.97 kB / 0.5801 GB, free: 95.76 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002685/0.9929, allocations: 0.7477 MB / 0.5808 GB, free: 95.65 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.9929, allocations: 0 / 0.5808 GB, free: 95.65 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003218/0.9962, allocations: 412.2 kB / 0.5812 GB, free: 95.65 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 83 * 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.00709/1.003, allocations: 3.956 MB / 0.585 GB, free: 94.28 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004721/1.008, allocations: 1.913 MB / 0.5869 GB, free: 94.02 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/1.008, allocations: 3.344 kB / 0.5869 GB, free: 94.02 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002764/1.011, allocations: 1.29 MB / 0.5882 GB, free: 93.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002819/1.014, allocations: 277.2 kB / 0.5884 GB, free: 93.59 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01141/1.025, allocations: 3.703 MB / 0.5921 GB, free: 92.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00183/1.027, allocations: 1.726 MB / 0.5937 GB, free: 92.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001211/1.028, allocations: 298.1 kB / 0.594 GB, free: 91.99 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/1.029, allocations: 0.6989 MB / 0.5947 GB, free: 91.99 MB / 442.7 MB Notification: Performance of SimCode: time 8.91e-07/1.029, allocations: 7.25 kB / 0.5947 GB, free: 91.99 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06967/1.099, allocations: 33.65 MB / 0.6276 GB, free: 90.16 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001546/1.099, allocations: 161.7 kB / 0.6277 GB, free: 89.98 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.743/3.842, allocations: 0 / 0.6277 GB, free: 89.98 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat