Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",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.001041/0.001041, allocations: 182.9 kB / 8.477 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.143/1.143, allocations: 205.2 MB / 214.1 MB, free: 5.18 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.0008911/0.0008911, allocations: 82.56 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1478/0.1487, allocations: 52.98 MB / 315.1 MB, free: 41.35 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06042/0.2092, allocations: 47.57 MB / 362.6 MB, free: 9.816 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2249/0.4341, allocations: 107.8 MB / 470.4 MB, free: 1.137 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/0.4343, allocations: 86.83 kB / 470.5 MB, free: 1.094 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.2055/0.6398, allocations: 82.41 MB / 0.54 GB, free: 5.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.6399, allocations: 12 kB / 0.54 GB, free: 5.488 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004275/0.6441, allocations: 0.7295 MB / 0.5407 GB, free: 4.754 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007727/0.6519, allocations: 3.356 MB / 0.544 GB, free: 1.336 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001087/0.652, allocations: 104 kB / 0.5441 GB, free: 1.234 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004582/0.6525, allocations: 183.9 kB / 0.5443 GB, free: 1.055 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005722/0.6582, allocations: 3.215 MB / 0.5474 GB, free: 13.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006145/0.6644, allocations: 3.696 MB / 0.551 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.176e-05/0.6645, allocations: 4 kB / 0.551 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002726/0.6648, allocations: 4 kB / 0.551 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001282/0.6649, allocations: 142.2 kB / 0.5511 GB, free: 9.875 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02064/0.6855, allocations: 13.03 MB / 0.5639 GB, free: 12.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.6871, allocations: 1.058 MB / 0.5649 GB, free: 11.45 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002226/0.6893, allocations: 1.384 MB / 0.5663 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005608/0.6949, allocations: 3.295 MB / 0.5695 GB, free: 6.672 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.695, allocations: 51.88 kB / 0.5695 GB, free: 6.613 MB / 426.7 MB Notification: Performance of pre-optimization done (n=153): time 4.348e-06/0.695, allocations: 4 kB / 0.5695 GB, free: 6.609 MB / 426.7 MB Notification: Performance of matching and sorting (n=173): time 0.01155/0.7066, allocations: 5.536 MB / 0.5749 GB, free: 0.9648 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.7066, allocations: 73.41 kB / 0.575 GB, free: 0.8828 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.104/0.8106, allocations: 1.358 MB / 0.5763 GB, free: 138.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001992/0.8109, allocations: 25.7 kB / 0.5764 GB, free: 138.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003721/0.8112, allocations: 1.141 MB / 0.5775 GB, free: 138 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003062/0.8116, allocations: 0.5588 MB / 0.578 GB, free: 137.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.728e-05/0.8117, allocations: 1 kB / 0.578 GB, free: 137.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.717e-05/0.8118, allocations: 379.6 kB / 0.5784 GB, free: 137.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001097/0.8129, allocations: 0.824 MB / 0.5792 GB, free: 137.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.814, allocations: 1.274 MB / 0.5804 GB, free: 137 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001625/0.8157, allocations: 1.107 MB / 0.5815 GB, free: 136.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-06/0.8157, allocations: 3.781 kB / 0.5815 GB, free: 136.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.00428/0.82, allocations: 2.747 MB / 0.5842 GB, free: 136.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.82, allocations: 4.438 kB / 0.5842 GB, free: 136.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.82, allocations: 17.44 kB / 0.5842 GB, free: 136.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001301/0.8213, allocations: 0.4975 MB / 0.5847 GB, free: 136.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/0.8232, allocations: 444.9 kB / 0.5851 GB, free: 136.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006594/0.8298, allocations: 5.927 MB / 0.5909 GB, free: 134.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.831, allocations: 48.53 kB / 0.591 GB, free: 134.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001366/0.8311, allocations: 81.27 kB / 0.591 GB, free: 134.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 207 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002536/0.8314, allocations: 152.6 kB / 0.5912 GB, free: 134 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002338/0.8316, allocations: 185.4 kB / 0.5914 GB, free: 133.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004065/0.8357, allocations: 2.655 MB / 0.5939 GB, free: 133.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.8357, allocations: 21.84 kB / 0.594 GB, free: 133.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.8358, allocations: 7.344 kB / 0.594 GB, free: 133.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.8358, allocations: 13.92 kB / 0.594 GB, free: 133.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007387/0.8432, allocations: 5.715 MB / 0.5996 GB, free: 132.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.8432, allocations: 0 / 0.5996 GB, free: 132.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/0.8445, allocations: 270.1 kB / 0.5998 GB, free: 132.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001188/0.8457, allocations: 495.6 kB / 0.6003 GB, free: 132.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.8458, allocations: 15.34 kB / 0.6003 GB, free: 132.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007449/0.8533, allocations: 9.792 MB / 0.6099 GB, free: 126.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.8533, allocations: 2.516 kB / 0.6099 GB, free: 126.4 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004849/0.8581, allocations: 3.964 MB / 0.6138 GB, free: 125.7 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006104/0.8643, allocations: 5.597 MB / 0.6192 GB, free: 124.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007616/0.865, allocations: 470.9 kB / 0.6197 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002961/0.8653, allocations: 7.906 kB / 0.6197 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.8663, allocations: 54.06 kB / 0.6197 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.8665, allocations: 93.81 kB / 0.6198 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.8667, allocations: 50.58 kB / 0.6199 GB, free: 124.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001242/0.8679, allocations: 1.027 MB / 0.6209 GB, free: 124.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002415/0.8703, allocations: 0.5865 MB / 0.6214 GB, free: 124.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 126 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004273/0.8708, allocations: 328.5 kB / 0.6218 GB, free: 124.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003293/0.8741, allocations: 2.434 MB / 0.6241 GB, free: 123.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.8741, allocations: 2.75 kB / 0.6241 GB, free: 123.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/0.8761, allocations: 1.635 MB / 0.6257 GB, free: 123 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.8776, allocations: 346.9 kB / 0.6261 GB, free: 122.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00795/0.8855, allocations: 4.974 MB / 0.6309 GB, free: 121 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002128/0.8877, allocations: 2.572 MB / 0.6334 GB, free: 119.8 MB / 426.7 MB Notification: Performance of SimCode: time 4.31e-07/0.8877, allocations: 0 / 0.6334 GB, free: 119.8 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat does not exist to compare? outputFormat=mat