Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001003, allocations: 203.4 kB / 8.54 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.096/1.096, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008562/0.0008562, allocations: 93.73 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08524/0.08612, allocations: 56.93 MB / 343.3 MB, free: 8.613 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07555/0.1617, allocations: 51.47 MB / 394.7 MB, free: 5.09 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2163/0.378, allocations: 118.4 MB / 0.5011 GB, free: 7.715 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.3782, allocations: 100 kB / 0.5012 GB, free: 7.66 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.5821/0.9604, allocations: 235.6 MB / 0.7313 GB, free: 9.281 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.9604, allocations: 12 kB / 0.7313 GB, free: 9.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01025/0.9707, allocations: 2.242 MB / 0.7335 GB, free: 7.012 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2427/1.213, allocations: 9.039 MB / 0.7423 GB, free: 60.74 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003531/1.214, allocations: 327.6 kB / 0.7426 GB, free: 60.74 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001903/1.216, allocations: 0.5847 MB / 0.7432 GB, free: 60.74 MB / 442.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01732/1.233, allocations: 11.02 MB / 0.7539 GB, free: 60.69 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01892/1.252, allocations: 12.47 MB / 0.7661 GB, free: 59.61 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000193/1.252, allocations: 5.469 kB / 0.7661 GB, free: 59.61 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008723/1.253, allocations: 10.06 kB / 0.7661 GB, free: 59.61 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002522/1.253, allocations: 462.5 kB / 0.7666 GB, free: 59.58 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05435/1.308, allocations: 42.88 MB / 0.8085 GB, free: 51.32 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003755/1.311, allocations: 3.475 MB / 0.8119 GB, free: 50.22 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006185/1.318, allocations: 5.279 MB / 0.817 GB, free: 48.43 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01808/1.336, allocations: 13.57 MB / 0.8303 GB, free: 41.78 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.699e-05/1.336, allocations: 89.38 kB / 0.8303 GB, free: 41.7 MB / 442.8 MB Notification: Performance of pre-optimization done (n=517): time 6.071e-06/1.336, allocations: 1.594 kB / 0.8303 GB, free: 41.7 MB / 442.8 MB Notification: Performance of matching and sorting (n=523): time 0.0228/1.359, allocations: 15.49 MB / 0.8455 GB, free: 34.89 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/1.359, allocations: 104.2 kB / 0.8456 GB, free: 34.82 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005616/1.364, allocations: 3.878 MB / 0.8494 GB, free: 33.36 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004775/1.365, allocations: 27.95 kB / 0.8494 GB, free: 33.32 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001217/1.366, allocations: 3.431 MB / 0.8527 GB, free: 30.91 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001024/1.367, allocations: 1.662 MB / 0.8544 GB, free: 29.59 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002688/1.367, allocations: 0 / 0.8544 GB, free: 29.59 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0002024/1.368, allocations: 0.5217 MB / 0.8549 GB, free: 29.19 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003168/1.371, allocations: 2.639 MB / 0.8574 GB, free: 28.12 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003551/1.374, allocations: 3.8 MB / 0.8612 GB, free: 25.7 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004475/1.379, allocations: 3.368 MB / 0.8644 GB, free: 24.38 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.602e-05/1.379, allocations: 9.688 kB / 0.8645 GB, free: 24.38 MB / 442.8 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01174/1.391, allocations: 8.48 MB / 0.8727 GB, free: 21.08 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/1.391, allocations: 10.38 kB / 0.8727 GB, free: 21.08 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.761e-05/1.391, allocations: 32.78 kB / 0.8728 GB, free: 21.08 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00304/1.394, allocations: 1.475 MB / 0.8742 GB, free: 20.58 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004319/1.398, allocations: 1.126 MB / 0.8753 GB, free: 20.54 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1461/1.544, allocations: 25.31 MB / 0.9 GB, free: 53.72 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003887/1.548, allocations: 132.6 kB / 0.9002 GB, free: 53.72 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004064/1.548, allocations: 216.5 kB / 0.9004 GB, free: 53.72 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (622): * Single equations (assignments): 606 * 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: 14 * 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: 14 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,56.2%) 22,(2,100.0%) 6,(2,100.0%) 6,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007704/1.549, allocations: 242.5 kB / 0.9006 GB, free: 53.61 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006224/1.55, allocations: 0.5564 MB / 0.9011 GB, free: 53.61 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01203/1.562, allocations: 8.456 MB / 0.9094 GB, free: 52.86 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-05/1.562, allocations: 51.38 kB / 0.9095 GB, free: 52.86 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.478e-05/1.562, allocations: 27.22 kB / 0.9095 GB, free: 52.86 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.52e-05/1.562, allocations: 33.83 kB / 0.9095 GB, free: 52.86 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02296/1.585, allocations: 17.48 MB / 0.9266 GB, free: 51.05 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/1.585, allocations: 7.25 kB / 0.9266 GB, free: 51.05 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002571/1.588, allocations: 0.5906 MB / 0.9272 GB, free: 51.05 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004503/1.592, allocations: 2.236 MB / 0.9294 GB, free: 50.94 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003261/1.592, allocations: 33.91 kB / 0.9294 GB, free: 50.94 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02712/1.62, allocations: 32.5 MB / 0.9611 GB, free: 35.04 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.62, allocations: 7.938 kB / 0.9611 GB, free: 35.04 MB / 442.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01647/1.636, allocations: 12.85 MB / 0.9737 GB, free: 33.54 MB / 442.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01981/1.656, allocations: 17.42 MB / 0.9907 GB, free: 29.74 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002721/1.659, allocations: 1.25 MB / 0.9919 GB, free: 28.98 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00127/1.66, allocations: 25.42 kB / 0.9919 GB, free: 28.98 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002693/1.663, allocations: 176.9 kB / 0.9921 GB, free: 28.98 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005882/1.663, allocations: 335.9 kB / 0.9924 GB, free: 28.92 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003319/1.664, allocations: 135.5 kB / 0.9926 GB, free: 28.89 MB / 442.8 MB Notification: Performance of sort global known variables: time 0.003575/1.667, allocations: 2.905 MB / 0.9954 GB, free: 27.76 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.005701/1.673, allocations: 1.77 MB / 0.9971 GB, free: 27.7 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,aims3.rotor.zeroInductor.i0,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (337): * Single equations (assignments): 324 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 5,(6,72.2%) 46,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(11,49.6%) 56,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007674/1.674, allocations: 0.5019 MB / 0.9976 GB, free: 27.58 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.009376/1.683, allocations: 8.214 MB / 1.006 GB, free: 23.57 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/1.683, allocations: 4.031 kB / 1.006 GB, free: 23.57 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006801/1.69, allocations: 5.467 MB / 1.011 GB, free: 20.77 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005027/1.695, allocations: 1.151 MB / 1.012 GB, free: 20.51 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02516/1.72, allocations: 15.84 MB / 1.028 GB, free: 14.68 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00694/1.727, allocations: 6.919 MB / 1.034 GB, free: 12.52 MB / 442.8 MB Notification: Performance of SimCode: time 6.01e-07/1.727, allocations: 4 kB / 1.034 GB, free: 12.52 MB / 442.8 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase_res.mat does not exist to compare? outputFormat=mat