Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_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.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_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.001663/0.001664, allocations: 176.6 kB / 8.475 MB, free: 1.855 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.181/1.181, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.000873/0.000873, allocations: 70.86 kB / 262.1 MB, free: 5.152 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1561/0.157, allocations: 52.99 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06406/0.221, allocations: 47.58 MB / 362.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2474/0.4684, allocations: 111.1 MB / 473.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/0.4687, allocations: 83.7 kB / 473.8 MB, free: 13.92 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.5827/1.051, allocations: 188.3 MB / 0.6466 GB, free: 68.85 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/1.051, allocations: 7.344 kB / 0.6466 GB, free: 68.85 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.011/1.062, allocations: 1.822 MB / 0.6484 GB, free: 68.36 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01687/1.079, allocations: 6.988 MB / 0.6552 GB, free: 66.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004213/1.08, allocations: 261.6 kB / 0.6555 GB, free: 66.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002493/1.082, allocations: 485.1 kB / 0.6559 GB, free: 66.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01883/1.101, allocations: 8.693 MB / 0.6644 GB, free: 63.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0254/1.127, allocations: 9.744 MB / 0.6739 GB, free: 58.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003028/1.127, allocations: 7.906 kB / 0.6739 GB, free: 58.08 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001725/1.129, allocations: 8 kB / 0.674 GB, free: 58.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002718/1.129, allocations: 372.4 kB / 0.6743 GB, free: 57.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05866/1.188, allocations: 33.23 MB / 0.7068 GB, free: 30.03 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003442/1.191, allocations: 2.643 MB / 0.7093 GB, free: 27.38 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004452/1.196, allocations: 3.699 MB / 0.713 GB, free: 23.69 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01562/1.211, allocations: 10.21 MB / 0.7229 GB, free: 13.47 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.669e-05/1.211, allocations: 73.69 kB / 0.723 GB, free: 13.39 MB / 426.7 MB Notification: Performance of pre-optimization done (n=397): time 6.763e-06/1.211, allocations: 4 kB / 0.723 GB, free: 13.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=403): time 0.01883/1.23, allocations: 11.54 MB / 0.7343 GB, free: 1.746 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/1.23, allocations: 90.58 kB / 0.7344 GB, free: 1.645 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1329/1.363, allocations: 3.202 MB / 0.7375 GB, free: 102.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006254/1.364, allocations: 28.83 kB / 0.7375 GB, free: 102.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001111/1.365, allocations: 2.787 MB / 0.7402 GB, free: 102.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001093/1.366, allocations: 1.297 MB / 0.7415 GB, free: 101.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002273/1.366, allocations: 0 / 0.7415 GB, free: 101.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001983/1.367, allocations: 485.1 kB / 0.742 GB, free: 101.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002676/1.369, allocations: 2.018 MB / 0.7439 GB, free: 101.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003161/1.372, allocations: 3.063 MB / 0.7469 GB, free: 100.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003901/1.376, allocations: 2.668 MB / 0.7495 GB, free: 100 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.808e-05/1.376, allocations: 9.844 kB / 0.7495 GB, free: 100 MB / 426.7 MB Notification: Performance of matching and sorting (n=572) (initialization): time 0.009804/1.386, allocations: 6.344 MB / 0.7557 GB, free: 99.49 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/1.386, allocations: 3.375 kB / 0.7557 GB, free: 99.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.652e-05/1.386, allocations: 37.75 kB / 0.7558 GB, free: 99.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001895/1.388, allocations: 0.7992 MB / 0.7566 GB, free: 99.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003847/1.392, allocations: 0.9357 MB / 0.7575 GB, free: 99.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01106/1.403, allocations: 13.95 MB / 0.7711 GB, free: 90.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00366/1.407, allocations: 106.8 kB / 0.7712 GB, free: 90.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005562/1.407, allocations: 188.7 kB / 0.7714 GB, free: 90.74 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 2,(1,100.0%) 2,(4,56.2%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008088/1.408, allocations: 215.3 kB / 0.7716 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009125/1.409, allocations: 437.2 kB / 0.772 GB, free: 90.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01036/1.419, allocations: 6.114 MB / 0.778 GB, free: 89.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.721e-05/1.419, allocations: 37.81 kB / 0.778 GB, free: 89.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.366e-05/1.42, allocations: 23 kB / 0.778 GB, free: 89.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-05/1.42, allocations: 20.25 kB / 0.778 GB, free: 89.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02034/1.44, allocations: 13.39 MB / 0.7911 GB, free: 88.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/1.44, allocations: 6.375 kB / 0.7911 GB, free: 88.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002371/1.442, allocations: 0.4884 MB / 0.7916 GB, free: 88.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003394/1.446, allocations: 1.373 MB / 0.7929 GB, free: 88.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000261/1.446, allocations: 47.09 kB / 0.793 GB, free: 88.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02038/1.466, allocations: 22.48 MB / 0.8149 GB, free: 71.81 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/1.466, allocations: 7.281 kB / 0.8149 GB, free: 71.81 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01246/1.479, allocations: 9.396 MB / 0.8241 GB, free: 67.44 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01551/1.494, allocations: 12.82 MB / 0.8366 GB, free: 61.37 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002296/1.497, allocations: 0.9988 MB / 0.8376 GB, free: 60.75 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009075/1.498, allocations: 31.41 kB / 0.8376 GB, free: 60.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002416/1.5, allocations: 134.9 kB / 0.8378 GB, free: 60.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004881/1.501, allocations: 267.8 kB / 0.838 GB, free: 60.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002608/1.501, allocations: 106.2 kB / 0.8381 GB, free: 60.67 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003316/1.504, allocations: 2.388 MB / 0.8405 GB, free: 59.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005693/1.51, allocations: 1.367 MB / 0.8418 GB, free: 59.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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%) 13,(1,100.0%) 5,(1,100.0%) 8,(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.0008622/1.511, allocations: 427.6 kB / 0.8422 GB, free: 58.78 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007684/1.519, allocations: 5.903 MB / 0.848 GB, free: 53.34 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/1.519, allocations: 0 / 0.848 GB, free: 53.34 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005245/1.524, allocations: 3.978 MB / 0.8519 GB, free: 49.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004216/1.528, allocations: 0.8076 MB / 0.8526 GB, free: 49.09 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02382/1.552, allocations: 12.42 MB / 0.8648 GB, free: 38.06 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006095/1.558, allocations: 5.562 MB / 0.8702 GB, free: 33.84 MB / 426.7 MB Notification: Performance of SimCode: time 1.453e-06/1.558, allocations: 0 / 0.8702 GB, free: 33.84 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat