Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",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.001027/0.001027, allocations: 183.5 kB / 8.481 MB, free: 1.875 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.123/1.123, 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.0009042/0.0009043, allocations: 95.25 kB / 262.1 MB, free: 5.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.147/0.1479, allocations: 52.97 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05992/0.2079, allocations: 47.58 MB / 362.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2345/0.4424, allocations: 118 MB / 480.7 MB, free: 7.398 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/0.4427, allocations: 85.7 kB / 480.8 MB, free: 7.355 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.2176/0.6603, allocations: 82.61 MB / 0.5502 GB, free: 11.24 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.6603, allocations: 11.94 kB / 0.5502 GB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003372/0.6637, allocations: 0.6471 MB / 0.5508 GB, free: 10.58 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007897/0.6716, allocations: 3.371 MB / 0.5541 GB, free: 7.152 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.6718, allocations: 112 kB / 0.5542 GB, free: 7.043 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005145/0.6723, allocations: 211.9 kB / 0.5544 GB, free: 6.836 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005927/0.6782, allocations: 3.247 MB / 0.5576 GB, free: 3.586 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006313/0.6846, allocations: 3.869 MB / 0.5613 GB, free: 15.58 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-05/0.6847, allocations: 7.906 kB / 0.5614 GB, free: 15.57 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002893/0.685, allocations: 8 kB / 0.5614 GB, free: 15.56 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001402/0.6851, allocations: 166.8 kB / 0.5615 GB, free: 15.4 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02016/0.7053, allocations: 13.95 MB / 0.5751 GB, free: 1.035 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1017/0.807, allocations: 1.182 MB / 0.5763 GB, free: 134 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001872/0.8089, allocations: 1.275 MB / 0.5775 GB, free: 133.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006136/0.8151, allocations: 4.096 MB / 0.5815 GB, free: 133.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.8151, allocations: 52.81 kB / 0.5816 GB, free: 133.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=156): time 3.827e-06/0.8151, allocations: 0 / 0.5816 GB, free: 133.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=160): time 0.006903/0.822, allocations: 4.665 MB / 0.5861 GB, free: 132.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.075e-05/0.8221, allocations: 69.28 kB / 0.5862 GB, free: 132.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002024/0.8241, allocations: 1.562 MB / 0.5877 GB, free: 132.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000128/0.8242, allocations: 25.7 kB / 0.5878 GB, free: 132.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006481/0.8249, allocations: 1.323 MB / 0.5891 GB, free: 131.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003317/0.8252, allocations: 0.5292 MB / 0.5896 GB, free: 131.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.793e-05/0.8253, allocations: 0 / 0.5896 GB, free: 131.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.678e-05/0.8254, allocations: 386.1 kB / 0.5899 GB, free: 131 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/0.8265, allocations: 0.7825 MB / 0.5907 GB, free: 131 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.8277, allocations: 1.401 MB / 0.5921 GB, free: 130.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/0.8292, allocations: 1.078 MB / 0.5931 GB, free: 130.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.8293, allocations: 3.594 kB / 0.5931 GB, free: 130.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.003605/0.8329, allocations: 2.589 MB / 0.5957 GB, free: 129.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.8329, allocations: 6.75 kB / 0.5957 GB, free: 129.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/0.8329, allocations: 22.03 kB / 0.5957 GB, free: 129.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003528/0.8333, allocations: 140.3 kB / 0.5958 GB, free: 129.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001978/0.8353, allocations: 493.9 kB / 0.5963 GB, free: 129.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001743/0.837, allocations: 2.946 MB / 0.5992 GB, free: 127.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.8385, allocations: 62.88 kB / 0.5992 GB, free: 127.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.8386, allocations: 88.42 kB / 0.5993 GB, free: 127.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (253): * Single equations (assignments): 250 * 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: 2 * 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: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002633/0.8389, allocations: 168.3 kB / 0.5995 GB, free: 127.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002641/0.8392, allocations: 208.5 kB / 0.5997 GB, free: 127.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003525/0.8427, allocations: 2.354 MB / 0.602 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.8427, allocations: 18.3 kB / 0.602 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.8427, allocations: 11.28 kB / 0.602 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.543e-05/0.8428, allocations: 10.88 kB / 0.602 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007069/0.8498, allocations: 5.319 MB / 0.6072 GB, free: 126.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.8499, allocations: 3.75 kB / 0.6072 GB, free: 126.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001496/0.8514, allocations: 269.4 kB / 0.6075 GB, free: 126.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007547/0.8521, allocations: 272.1 kB / 0.6077 GB, free: 126.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.8522, allocations: 14 kB / 0.6077 GB, free: 126.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004675/0.8569, allocations: 6.71 MB / 0.6143 GB, free: 121.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.8569, allocations: 8.062 kB / 0.6143 GB, free: 121.1 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004351/0.8613, allocations: 3.744 MB / 0.618 GB, free: 120.2 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005646/0.867, allocations: 5.334 MB / 0.6232 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008499/0.8678, allocations: 485.6 kB / 0.6236 GB, free: 118.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003466/0.8682, allocations: 6.812 kB / 0.6236 GB, free: 118.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.8693, allocations: 50.56 kB / 0.6237 GB, free: 118.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.8695, allocations: 83.12 kB / 0.6238 GB, free: 118.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.8696, allocations: 43.33 kB / 0.6238 GB, free: 118.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001556/0.8712, allocations: 1.167 MB / 0.6249 GB, free: 118.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002616/0.8738, allocations: 0.5809 MB / 0.6255 GB, free: 118.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 134 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005218/0.8743, allocations: 429.7 kB / 0.6259 GB, free: 118.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002678/0.877, allocations: 2.25 MB / 0.6281 GB, free: 118 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.877, allocations: 3.969 kB / 0.6281 GB, free: 118 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001691/0.8787, allocations: 1.41 MB / 0.6295 GB, free: 117.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/0.8806, allocations: 415.8 kB / 0.6299 GB, free: 117.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008505/0.8891, allocations: 5.023 MB / 0.6348 GB, free: 115.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00245/0.8916, allocations: 2.676 MB / 0.6374 GB, free: 114.2 MB / 426.7 MB Notification: Performance of SimCode: time 5.71e-07/0.8916, allocations: 0 / 0.6374 GB, free: 114.2 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat