Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",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 3.2.3+maint.om/package.mo): time 0.001889/0.001889, allocations: 183.7 kB / 8.478 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.224/1.224, allocations: 205.2 MB / 214.1 MB, free: 5.086 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008706/0.0008706, allocations: 87.33 kB / 262.1 MB, free: 5.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1495/0.1504, allocations: 52.97 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05986/0.2102, allocations: 47.57 MB / 362.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2268/0.4371, allocations: 113.9 MB / 476.5 MB, free: 11.26 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.4373, allocations: 84.42 kB / 476.6 MB, free: 11.21 MB / 330.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.6399/1.077, allocations: 227.6 MB / 0.6877 GB, free: 51.68 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/1.077, allocations: 8 kB / 0.6877 GB, free: 51.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01154/1.089, allocations: 2.137 MB / 0.6898 GB, free: 49.53 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01919/1.108, allocations: 8.953 MB / 0.6986 GB, free: 40.62 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003963/1.108, allocations: 328 kB / 0.6989 GB, free: 40.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002339/1.111, allocations: 0.5896 MB / 0.6994 GB, free: 39.71 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01888/1.13, allocations: 11.03 MB / 0.7102 GB, free: 28.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02072/1.15, allocations: 12.5 MB / 0.7224 GB, free: 15.85 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002126/1.151, allocations: 11.91 kB / 0.7224 GB, free: 15.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009412/1.152, allocations: 12 kB / 0.7224 GB, free: 15.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002676/1.152, allocations: 460.4 kB / 0.7229 GB, free: 15.37 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3329/1.485, allocations: 42.51 MB / 0.7644 GB, free: 77.94 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003945/1.489, allocations: 3.432 MB / 0.7677 GB, free: 77.91 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006219/1.495, allocations: 4.972 MB / 0.7726 GB, free: 77.86 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01998/1.515, allocations: 12.91 MB / 0.7852 GB, free: 76.88 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.629e-05/1.515, allocations: 90.7 kB / 0.7853 GB, free: 76.83 MB / 426.8 MB Notification: Performance of pre-optimization done (n=507): time 6.252e-06/1.515, allocations: 0 / 0.7853 GB, free: 76.83 MB / 426.8 MB Notification: Performance of matching and sorting (n=513): time 0.02416/1.539, allocations: 15.24 MB / 0.8002 GB, free: 73.74 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/1.539, allocations: 104.8 kB / 0.8003 GB, free: 73.67 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005573/1.545, allocations: 3.86 MB / 0.804 GB, free: 72.24 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002975/1.545, allocations: 32.86 kB / 0.8041 GB, free: 72.21 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001284/1.547, allocations: 3.438 MB / 0.8074 GB, free: 69.89 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009556/1.548, allocations: 1.629 MB / 0.809 GB, free: 68.6 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003128/1.548, allocations: 0 / 0.809 GB, free: 68.6 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0002249/1.548, allocations: 0.5141 MB / 0.8095 GB, free: 68.2 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003272/1.551, allocations: 2.591 MB / 0.8121 GB, free: 67.15 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003951/1.555, allocations: 3.754 MB / 0.8157 GB, free: 64.74 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004995/1.56, allocations: 3.312 MB / 0.819 GB, free: 63.45 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.817e-05/1.56, allocations: 10.53 kB / 0.819 GB, free: 63.45 MB / 426.8 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.01429/1.575, allocations: 8.365 MB / 0.8271 GB, free: 60.2 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/1.575, allocations: 7.125 kB / 0.8271 GB, free: 60.2 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.341e-05/1.575, allocations: 42.06 kB / 0.8272 GB, free: 60.2 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003924/1.579, allocations: 1.471 MB / 0.8286 GB, free: 59.69 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004826/1.584, allocations: 1.121 MB / 0.8297 GB, free: 59.66 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01831/1.602, allocations: 25.26 MB / 0.8544 GB, free: 39.08 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004133/1.606, allocations: 130.1 kB / 0.8545 GB, free: 39.07 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007021/1.607, allocations: 214.2 kB / 0.8547 GB, free: 39.03 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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,68.8%) 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.0012/1.608, allocations: 238.3 kB / 0.8549 GB, free: 38.89 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001234/1.609, allocations: 0.5458 MB / 0.8555 GB, free: 38.61 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01402/1.623, allocations: 8.33 MB / 0.8636 GB, free: 35.2 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.551e-05/1.623, allocations: 50.12 kB / 0.8637 GB, free: 35.2 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.84e-05/1.623, allocations: 32.38 kB / 0.8637 GB, free: 35.2 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.666e-05/1.623, allocations: 24.19 kB / 0.8637 GB, free: 35.2 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02794/1.651, allocations: 17.28 MB / 0.8806 GB, free: 22.25 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/1.651, allocations: 4 kB / 0.8806 GB, free: 22.24 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002818/1.654, allocations: 0.5721 MB / 0.8811 GB, free: 21.78 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004982/1.659, allocations: 2.247 MB / 0.8833 GB, free: 19.94 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003574/1.66, allocations: 34.7 kB / 0.8834 GB, free: 19.91 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1612/1.821, allocations: 32.42 MB / 0.915 GB, free: 71.05 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.902e-06/1.821, allocations: 8.094 kB / 0.915 GB, free: 71.05 MB / 426.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01629/1.837, allocations: 12.7 MB / 0.9274 GB, free: 69.5 MB / 426.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02011/1.857, allocations: 17.19 MB / 0.9442 GB, free: 67.54 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002768/1.86, allocations: 1.232 MB / 0.9454 GB, free: 67.45 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009359/1.861, allocations: 24.14 kB / 0.9455 GB, free: 67.45 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002769/1.864, allocations: 186.8 kB / 0.9456 GB, free: 67.45 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000633/1.864, allocations: 330.3 kB / 0.946 GB, free: 67.45 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003287/1.865, allocations: 135.4 kB / 0.9461 GB, free: 67.45 MB / 426.8 MB Notification: Performance of sort global known variables: time 0.003728/1.869, allocations: 2.879 MB / 0.9489 GB, free: 67.27 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.005777/1.874, allocations: 1.746 MB / 0.9506 GB, free: 67.27 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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,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.0007833/1.875, allocations: 492.8 kB / 0.9511 GB, free: 67.17 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.009809/1.885, allocations: 8.106 MB / 0.959 GB, free: 65.45 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/1.885, allocations: 3.219 kB / 0.959 GB, free: 65.45 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007131/1.892, allocations: 5.475 MB / 0.9643 GB, free: 64.07 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005205/1.897, allocations: 1.117 MB / 0.9654 GB, free: 64.05 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02739/1.925, allocations: 15.76 MB / 0.9808 GB, free: 60.88 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008163/1.933, allocations: 6.893 MB / 0.9876 GB, free: 58.73 MB / 426.8 MB Notification: Performance of SimCode: time 1.112e-06/1.933, allocations: 0 / 0.9876 GB, free: 58.73 MB / 426.8 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat