Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_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.IMC_DOL_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_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.0009691/0.0009691, allocations: 197.8 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.094/1.094, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008506/0.0008507, allocations: 94.84 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08481/0.08568, allocations: 56.93 MB / 343.3 MB, free: 8.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07499/0.1607, allocations: 51.48 MB / 394.7 MB, free: 5.09 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2135/0.3742, allocations: 114.9 MB / 0.4977 GB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002285/0.3745, allocations: 100.8 kB / 0.4978 GB, free: 10.65 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.5003/0.8748, allocations: 195.3 MB / 0.6885 GB, free: 47.76 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.8748, allocations: 13.78 kB / 0.6885 GB, free: 47.76 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00942/0.8842, allocations: 1.925 MB / 0.6904 GB, free: 46.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01222/0.8965, allocations: 7.039 MB / 0.6972 GB, free: 42.19 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.8967, allocations: 263.1 kB / 0.6975 GB, free: 42.19 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001146/0.8978, allocations: 479.9 kB / 0.6979 GB, free: 42.14 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01199/0.9098, allocations: 8.69 MB / 0.7064 GB, free: 33.45 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0125/0.9223, allocations: 9.725 MB / 0.7159 GB, free: 23.48 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001635/0.9225, allocations: 11.89 kB / 0.7159 GB, free: 23.47 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006279/0.9231, allocations: 7.938 kB / 0.7159 GB, free: 23.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001938/0.9233, allocations: 380.2 kB / 0.7163 GB, free: 23.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2548/1.178, allocations: 33.38 MB / 0.7489 GB, free: 82.18 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002772/1.181, allocations: 2.655 MB / 0.7515 GB, free: 82.15 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004365/1.185, allocations: 3.842 MB / 0.7552 GB, free: 82.11 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01357/1.199, allocations: 10.71 MB / 0.7657 GB, free: 80.82 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/1.199, allocations: 76.7 kB / 0.7658 GB, free: 80.78 MB / 442.8 MB Notification: Performance of pre-optimization done (n=399): time 5.099e-06/1.199, allocations: 0 / 0.7658 GB, free: 80.78 MB / 442.8 MB Notification: Performance of matching and sorting (n=405): time 0.01734/1.216, allocations: 11.62 MB / 0.7771 GB, free: 79.29 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.931e-05/1.216, allocations: 89.78 kB / 0.7772 GB, free: 79.23 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003735/1.22, allocations: 3.212 MB / 0.7803 GB, free: 78.94 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001859/1.22, allocations: 29.14 kB / 0.7804 GB, free: 78.91 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008889/1.221, allocations: 2.78 MB / 0.7831 GB, free: 77.45 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006518/1.222, allocations: 1.304 MB / 0.7844 GB, free: 76.58 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002053/1.222, allocations: 0 / 0.7844 GB, free: 76.58 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0001719/1.222, allocations: 483.7 kB / 0.7848 GB, free: 76.27 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00232/1.225, allocations: 2.03 MB / 0.7868 GB, free: 76.25 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002666/1.227, allocations: 3.068 MB / 0.7898 GB, free: 75.09 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003607/1.231, allocations: 2.67 MB / 0.7924 GB, free: 75.04 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-05/1.231, allocations: 9.875 kB / 0.7924 GB, free: 75.04 MB / 442.8 MB Notification: Performance of matching and sorting (n=572) (initialization): time 0.008613/1.24, allocations: 6.369 MB / 0.7986 GB, free: 74.51 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.118e-05/1.24, allocations: 3.969 kB / 0.7986 GB, free: 74.51 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.84e-05/1.24, allocations: 31.53 kB / 0.7987 GB, free: 74.51 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001669/1.241, allocations: 0.8036 MB / 0.7995 GB, free: 74.44 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003425/1.245, allocations: 0.9439 MB / 0.8004 GB, free: 74.44 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/1.255, allocations: 13.98 MB / 0.814 GB, free: 64.14 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002823/1.258, allocations: 101.5 kB / 0.8141 GB, free: 64.14 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000321/1.258, allocations: 181.1 kB / 0.8143 GB, free: 64.11 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 140 * Number of states: 0 () * Number of discrete variables: 8 (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 (509): * Single equations (assignments): 500 * 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: 7 * 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: 7 {(1,100.0%) 5,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2,(4,56.2%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005836/1.259, allocations: 218.8 kB / 0.8145 GB, free: 63.97 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005008/1.259, allocations: 441.9 kB / 0.8149 GB, free: 63.75 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008976/1.268, allocations: 6.15 MB / 0.8209 GB, free: 61.31 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-05/1.268, allocations: 38.91 kB / 0.821 GB, free: 61.31 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-05/1.268, allocations: 19.44 kB / 0.821 GB, free: 61.31 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.81e-05/1.268, allocations: 24.52 kB / 0.821 GB, free: 61.31 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01693/1.285, allocations: 13.44 MB / 0.8341 GB, free: 55.31 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/1.285, allocations: 3.594 kB / 0.8341 GB, free: 55.31 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002158/1.287, allocations: 0.4935 MB / 0.8346 GB, free: 55.3 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003165/1.29, allocations: 1.37 MB / 0.836 GB, free: 54.87 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002518/1.291, allocations: 48.25 kB / 0.836 GB, free: 54.86 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01917/1.31, allocations: 22.48 MB / 0.858 GB, free: 38.36 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/1.31, allocations: 11.66 kB / 0.858 GB, free: 38.36 MB / 442.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01149/1.321, allocations: 9.384 MB / 0.8671 GB, free: 33.98 MB / 442.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01426/1.336, allocations: 12.85 MB / 0.8797 GB, free: 26.92 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001906/1.338, allocations: 1 MB / 0.8807 GB, free: 26 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006583/1.338, allocations: 31.7 kB / 0.8807 GB, free: 25.97 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002027/1.34, allocations: 133.8 kB / 0.8808 GB, free: 25.88 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004344/1.341, allocations: 260.8 kB / 0.8811 GB, free: 25.73 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002491/1.341, allocations: 109.2 kB / 0.8812 GB, free: 25.64 MB / 442.8 MB Notification: Performance of sort global known variables: time 0.00282/1.344, allocations: 2.398 MB / 0.8835 GB, free: 23.49 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.004526/1.348, allocations: 1.389 MB / 0.8849 GB, free: 22.11 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (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 (275): * Single equations (assignments): 266 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12,(1,100.0%) 1,(6,72.2%) 46,(3,100.0%) 23,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006402/1.349, allocations: 441.1 kB / 0.8853 GB, free: 21.8 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.006352/1.355, allocations: 5.943 MB / 0.8911 GB, free: 16.32 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/1.355, allocations: 1.969 kB / 0.8911 GB, free: 16.32 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004476/1.36, allocations: 3.942 MB / 0.895 GB, free: 12.71 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003244/1.363, allocations: 0.8201 MB / 0.8958 GB, free: 12.06 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01864/1.382, allocations: 12.38 MB / 0.9078 GB, free: 0.9531 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1302/1.512, allocations: 5.753 MB / 0.9135 GB, free: 79.52 MB / 442.8 MB Notification: Performance of SimCode: time 8.32e-07/1.512, allocations: 3.5 kB / 0.9135 GB, free: 79.52 MB / 442.8 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase_res.mat does not exist to compare? outputFormat=mat