Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 184.5 kB / 8.138 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.253/1.253, allocations: 221.4 MB / 229.9 MB, free: 3.082 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009634/0.0009634, allocations: 96.7 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09517/0.09617, allocations: 55.84 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1808/0.277, allocations: 50.4 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1167/0.3937, allocations: 117.1 MB / 0.4924 GB, free: 1.566 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.394, allocations: 109.4 kB / 0.4925 GB, free: 1.461 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.7772/1.171, allocations: 229 MB / 0.7161 GB, free: 31.36 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/1.171, allocations: 11.47 kB / 0.7161 GB, free: 31.36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01226/1.184, allocations: 2.131 MB / 0.7182 GB, free: 30.74 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02107/1.205, allocations: 8.956 MB / 0.7269 GB, free: 29.45 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005899/1.205, allocations: 329.7 kB / 0.7272 GB, free: 29.45 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003071/1.208, allocations: 0.5825 MB / 0.7278 GB, free: 29.44 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02273/1.231, allocations: 11.03 MB / 0.7385 GB, free: 29.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03/1.261, allocations: 12.47 MB / 0.7507 GB, free: 27.79 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000434/1.262, allocations: 10.62 kB / 0.7507 GB, free: 27.79 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002695/1.264, allocations: 11.09 kB / 0.7507 GB, free: 27.79 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003309/1.265, allocations: 462.2 kB / 0.7512 GB, free: 27.74 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06894/1.334, allocations: 42.46 MB / 0.7927 GB, free: 13.43 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00516/1.339, allocations: 3.422 MB / 0.796 GB, free: 10.33 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00766/1.347, allocations: 5.016 MB / 0.8009 GB, free: 5.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02425/1.371, allocations: 12.97 MB / 0.8136 GB, free: 11.09 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.568e-05/1.371, allocations: 86.56 kB / 0.8136 GB, free: 11 MB / 458.7 MB Notification: Performance of pre-optimization done (n=509): time 8.055e-06/1.371, allocations: 3.609 kB / 0.8136 GB, free: 11 MB / 458.7 MB Notification: Performance of matching and sorting (n=515): time 0.2769/1.648, allocations: 15.53 MB / 0.8288 GB, free: 87.01 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/1.648, allocations: 106.4 kB / 0.8289 GB, free: 86.94 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005703/1.654, allocations: 3.842 MB / 0.8327 GB, free: 86.67 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008238/1.655, allocations: 28.61 kB / 0.8327 GB, free: 86.64 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001625/1.656, allocations: 3.433 MB / 0.836 GB, free: 86.24 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001408/1.658, allocations: 1.636 MB / 0.8376 GB, free: 85.2 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002916/1.658, allocations: 3.5 kB / 0.8376 GB, free: 85.2 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0002335/1.658, allocations: 0.5188 MB / 0.8382 GB, free: 84.89 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003424/1.662, allocations: 2.593 MB / 0.8407 GB, free: 84.87 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003781/1.665, allocations: 3.747 MB / 0.8443 GB, free: 83.62 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00484/1.67, allocations: 3.317 MB / 0.8476 GB, free: 83.54 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.955e-05/1.67, allocations: 10.5 kB / 0.8476 GB, free: 83.54 MB / 458.8 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.01325/1.683, allocations: 8.372 MB / 0.8558 GB, free: 82.61 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/1.684, allocations: 6.844 kB / 0.8558 GB, free: 82.61 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.245e-05/1.684, allocations: 34.34 kB / 0.8558 GB, free: 82.61 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003348/1.687, allocations: 1.478 MB / 0.8573 GB, free: 82.49 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004839/1.692, allocations: 1.113 MB / 0.8583 GB, free: 82.49 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01788/1.71, allocations: 25.27 MB / 0.883 GB, free: 65.4 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00433/1.714, allocations: 132.1 kB / 0.8831 GB, free: 65.39 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006528/1.715, allocations: 211.9 kB / 0.8833 GB, free: 65.39 MB / 458.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 (614): * Single equations (assignments): 598 * 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.0009277/1.716, allocations: 242.2 kB / 0.8836 GB, free: 65.26 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008878/1.717, allocations: 0.5426 MB / 0.8841 GB, free: 64.98 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01328/1.73, allocations: 8.35 MB / 0.8923 GB, free: 64.14 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.351e-05/1.73, allocations: 51.25 kB / 0.8923 GB, free: 64.14 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.319e-05/1.73, allocations: 29.75 kB / 0.8923 GB, free: 64.14 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.156e-05/1.73, allocations: 25.91 kB / 0.8924 GB, free: 64.14 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0269/1.757, allocations: 17.28 MB / 0.9092 GB, free: 62.28 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/1.757, allocations: 8.531 kB / 0.9092 GB, free: 62.28 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002832/1.76, allocations: 0.5809 MB / 0.9098 GB, free: 62.28 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004973/1.765, allocations: 2.23 MB / 0.912 GB, free: 62.16 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004572/1.765, allocations: 34.72 kB / 0.912 GB, free: 62.16 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02947/1.795, allocations: 32.46 MB / 0.9437 GB, free: 41.37 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/1.795, allocations: 6.656 kB / 0.9437 GB, free: 41.37 MB / 458.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01961/1.814, allocations: 12.64 MB / 0.9561 GB, free: 35.59 MB / 458.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02071/1.835, allocations: 17.13 MB / 0.9728 GB, free: 27.66 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003046/1.838, allocations: 1.239 MB / 0.974 GB, free: 26.91 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001061/1.839, allocations: 21.69 kB / 0.974 GB, free: 26.91 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002954/1.842, allocations: 189.2 kB / 0.9742 GB, free: 26.91 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006358/1.843, allocations: 330.1 kB / 0.9745 GB, free: 26.86 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000343/1.843, allocations: 133.1 kB / 0.9747 GB, free: 26.82 MB / 458.8 MB Notification: Performance of sort global known variables: time 0.004137/1.847, allocations: 2.877 MB / 0.9775 GB, free: 25.67 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.006542/1.854, allocations: 1.748 MB / 0.9792 GB, free: 23.93 MB / 458.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 (329): * Single equations (assignments): 316 * 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,54.5%) 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.0009528/1.855, allocations: 490 kB / 0.9796 GB, free: 23.6 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01031/1.865, allocations: 8.117 MB / 0.9876 GB, free: 16.07 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/1.865, allocations: 0 / 0.9876 GB, free: 16.07 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007702/1.873, allocations: 5.427 MB / 0.9929 GB, free: 11.11 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005642/1.879, allocations: 1.132 MB / 0.994 GB, free: 10.27 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1813/2.06, allocations: 15.72 MB / 1.009 GB, free: 78.8 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007751/2.068, allocations: 6.894 MB / 1.016 GB, free: 77.88 MB / 458.8 MB Notification: Performance of SimCode: time 7.81e-07/2.068, allocations: 0 / 1.016 GB, free: 77.88 MB / 458.8 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase.fmu > Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase_res.mat does not exist to compare? outputFormat=mat