Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",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.00102/0.00102, allocations: 176 kB / 8.476 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.118/1.118, allocations: 205.2 MB / 214.1 MB, free: 5.07 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.000885/0.000885, allocations: 86.27 kB / 262.1 MB, free: 5.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1551/0.156, allocations: 52.98 MB / 315.1 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06297/0.219, allocations: 47.57 MB / 362.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.233/0.4521, allocations: 109.6 MB / 472.2 MB, free: 15.64 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.4524, allocations: 83.89 kB / 472.3 MB, free: 15.6 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.2262/0.6786, allocations: 90.78 MB / 0.5499 GB, free: 11.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.6786, allocations: 11.98 kB / 0.5499 GB, free: 11.37 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004589/0.6832, allocations: 0.7991 MB / 0.5507 GB, free: 10.56 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008865/0.6921, allocations: 3.668 MB / 0.5543 GB, free: 6.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001889/0.6923, allocations: 116 kB / 0.5544 GB, free: 6.727 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008286/0.6931, allocations: 219.8 kB / 0.5546 GB, free: 6.512 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007658/0.7008, allocations: 3.872 MB / 0.5584 GB, free: 2.637 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008095/0.7089, allocations: 4.388 MB / 0.5627 GB, free: 14.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.067e-05/0.709, allocations: 4 kB / 0.5627 GB, free: 14.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003082/0.7093, allocations: 4 kB / 0.5627 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000151/0.7095, allocations: 163.1 kB / 0.5628 GB, free: 13.95 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1286/0.8381, allocations: 15.39 MB / 0.5779 GB, free: 130 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.8398, allocations: 1.352 MB / 0.5792 GB, free: 129.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002037/0.8418, allocations: 1.686 MB / 0.5808 GB, free: 129.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005628/0.8474, allocations: 4.145 MB / 0.5849 GB, free: 129.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.8475, allocations: 58.38 kB / 0.5849 GB, free: 129.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=193): time 3.527e-06/0.8475, allocations: 0 / 0.5849 GB, free: 129.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=196): time 0.008924/0.8564, allocations: 6.076 MB / 0.5909 GB, free: 128.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.942e-05/0.8565, allocations: 76.22 kB / 0.5909 GB, free: 128.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0019/0.8584, allocations: 1.589 MB / 0.5925 GB, free: 128.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001088/0.8585, allocations: 31.58 kB / 0.5925 GB, free: 128.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005663/0.8591, allocations: 1.266 MB / 0.5937 GB, free: 127.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003677/0.8595, allocations: 0.6292 MB / 0.5944 GB, free: 127.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.8596, allocations: 3.531 kB / 0.5944 GB, free: 127.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.8597, allocations: 387.2 kB / 0.5947 GB, free: 126.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.8609, allocations: 1.011 MB / 0.5957 GB, free: 126.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/0.8624, allocations: 1.478 MB / 0.5972 GB, free: 126.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00182/0.8642, allocations: 1.29 MB / 0.5984 GB, free: 126.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.8642, allocations: 3.5 kB / 0.5984 GB, free: 126.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=271) (initialization): time 0.004762/0.869, allocations: 3.39 MB / 0.6017 GB, free: 126 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.869, allocations: 5.938 kB / 0.6017 GB, free: 126 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.869, allocations: 14.34 kB / 0.6018 GB, free: 126 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/0.8706, allocations: 0.7291 MB / 0.6025 GB, free: 126 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001675/0.8723, allocations: 419.5 kB / 0.6029 GB, free: 126 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008228/0.8805, allocations: 9.823 MB / 0.6125 GB, free: 120.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/0.8818, allocations: 55.44 kB / 0.6125 GB, free: 120.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000162/0.882, allocations: 85 kB / 0.6126 GB, free: 120.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (221): * Single equations (assignments): 216 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003054/0.8823, allocations: 155.9 kB / 0.6127 GB, free: 120.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002862/0.8826, allocations: 220.7 kB / 0.613 GB, free: 120.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005024/0.8876, allocations: 3.33 MB / 0.6162 GB, free: 120.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.8877, allocations: 18.47 kB / 0.6162 GB, free: 120.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.8877, allocations: 15 kB / 0.6162 GB, free: 120.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.607e-05/0.8877, allocations: 7.688 kB / 0.6162 GB, free: 120.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008948/0.8967, allocations: 6.777 MB / 0.6229 GB, free: 119.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.8967, allocations: 2.625 kB / 0.6229 GB, free: 119.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.8978, allocations: 226.9 kB / 0.6231 GB, free: 119.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002007/0.8998, allocations: 0.9007 MB / 0.624 GB, free: 119.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001253/0.8999, allocations: 18.28 kB / 0.624 GB, free: 119.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01163/0.9116, allocations: 13.92 MB / 0.6376 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.9116, allocations: 9.188 kB / 0.6376 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006063/0.9177, allocations: 4.953 MB / 0.6424 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007686/0.9254, allocations: 6.916 MB / 0.6492 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/0.9264, allocations: 0.5398 MB / 0.6497 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004907/0.9269, allocations: 14.64 kB / 0.6497 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/0.9281, allocations: 59.69 kB / 0.6498 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000296/0.9284, allocations: 120.1 kB / 0.6499 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001755/0.9286, allocations: 51.45 kB / 0.6499 GB, free: 104.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001876/0.9305, allocations: 1.196 MB / 0.6511 GB, free: 103.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003168/0.9337, allocations: 0.6892 MB / 0.6518 GB, free: 103.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 120 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005115/0.9342, allocations: 338.9 kB / 0.6521 GB, free: 103.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004142/0.9383, allocations: 3.102 MB / 0.6551 GB, free: 102.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.9384, allocations: 3 kB / 0.6551 GB, free: 102.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002757/0.9411, allocations: 2.132 MB / 0.6572 GB, free: 100.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002108/0.9433, allocations: 441.4 kB / 0.6576 GB, free: 100.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/0.9544, allocations: 5.778 MB / 0.6633 GB, free: 97.17 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003041/0.9575, allocations: 2.882 MB / 0.6661 GB, free: 94.88 MB / 426.7 MB Notification: Performance of SimCode: time 2.344e-06/0.9575, allocations: 0 / 0.6661 GB, free: 94.88 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat does not exist to compare? outputFormat=mat