Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",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 trunk/package.mo): time 0.001036/0.001036, allocations: 207 kB / 8.542 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.149/1.149, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009095/0.0009095, allocations: 91.17 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09007/0.09101, allocations: 56.91 MB / 343.2 MB, free: 8.637 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0798/0.1708, allocations: 51.48 MB / 394.7 MB, free: 5.109 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.23/0.4008, allocations: 117 MB / 0.4998 GB, free: 8.797 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.4011, allocations: 98.94 kB / 0.4999 GB, free: 8.746 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.3275/0.7286, allocations: 79.9 MB / 0.5779 GB, free: 56.19 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.7286, allocations: 13.23 kB / 0.5779 GB, free: 56.19 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002538/0.7312, allocations: 0.6016 MB / 0.5785 GB, free: 56 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005792/0.737, allocations: 3.134 MB / 0.5816 GB, free: 55.62 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.278e-05/0.7371, allocations: 106.6 kB / 0.5817 GB, free: 55.62 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003443/0.7374, allocations: 180.6 kB / 0.5818 GB, free: 55.62 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004146/0.7416, allocations: 2.916 MB / 0.5847 GB, free: 55.61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004614/0.7462, allocations: 3.502 MB / 0.5881 GB, free: 55.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-05/0.7463, allocations: 5.75 kB / 0.5881 GB, free: 55.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002358/0.7465, allocations: 0 / 0.5881 GB, free: 55.18 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.2e-05/0.7466, allocations: 159.2 kB / 0.5883 GB, free: 55.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01405/0.7607, allocations: 13.04 MB / 0.601 GB, free: 51.6 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.7617, allocations: 0.9191 MB / 0.6019 GB, free: 51.59 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001337/0.7631, allocations: 1.039 MB / 0.6029 GB, free: 51.58 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003582/0.7667, allocations: 2.924 MB / 0.6058 GB, free: 50.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.7667, allocations: 48.53 kB / 0.6058 GB, free: 50.71 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 2.665e-06/0.7667, allocations: 0 / 0.6058 GB, free: 50.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=162): time 0.009591/0.7763, allocations: 5.42 MB / 0.6111 GB, free: 49.73 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.09e-05/0.7763, allocations: 71.69 kB / 0.6112 GB, free: 49.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001583/0.7779, allocations: 1.396 MB / 0.6125 GB, free: 49.49 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.055e-05/0.778, allocations: 27.67 kB / 0.6126 GB, free: 49.46 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003687/0.7784, allocations: 1.231 MB / 0.6138 GB, free: 48.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000259/0.7787, allocations: 0.5222 MB / 0.6143 GB, free: 48.36 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.622e-05/0.7788, allocations: 0 / 0.6143 GB, free: 48.36 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.781e-05/0.7789, allocations: 387.3 kB / 0.6146 GB, free: 48.05 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009895/0.7799, allocations: 0.7841 MB / 0.6154 GB, free: 48.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001176/0.781, allocations: 1.37 MB / 0.6167 GB, free: 47.36 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.7825, allocations: 1.087 MB / 0.6178 GB, free: 47.34 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.7825, allocations: 6.844 kB / 0.6178 GB, free: 47.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.003355/0.7859, allocations: 2.437 MB / 0.6202 GB, free: 47.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.7859, allocations: 7.25 kB / 0.6202 GB, free: 47.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.7859, allocations: 19.95 kB / 0.6202 GB, free: 47.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003115/0.7863, allocations: 115.7 kB / 0.6203 GB, free: 47.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001924/0.7882, allocations: 0.4923 MB / 0.6208 GB, free: 47.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006815/0.7889, allocations: 1.256 MB / 0.622 GB, free: 45.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.7901, allocations: 57.86 kB / 0.6221 GB, free: 45.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001434/0.7903, allocations: 85.42 kB / 0.6222 GB, free: 45.93 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 247 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002351/0.7905, allocations: 163 kB / 0.6223 GB, free: 45.81 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002319/0.7908, allocations: 196.4 kB / 0.6225 GB, free: 45.71 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002969/0.7937, allocations: 2.039 MB / 0.6245 GB, free: 45.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.318e-05/0.7938, allocations: 18.38 kB / 0.6245 GB, free: 45.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.7938, allocations: 0 / 0.6245 GB, free: 45.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.7938, allocations: 10.27 kB / 0.6245 GB, free: 45.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006471/0.8003, allocations: 4.957 MB / 0.6294 GB, free: 45.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.8003, allocations: 3.938 kB / 0.6294 GB, free: 45.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001522/0.8018, allocations: 337.9 kB / 0.6297 GB, free: 45.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002863/0.8021, allocations: 96.48 kB / 0.6298 GB, free: 45.02 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.575e-05/0.8022, allocations: 5.938 kB / 0.6298 GB, free: 45.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005591/0.8028, allocations: 1.227 MB / 0.631 GB, free: 43.83 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.8028, allocations: 0 / 0.631 GB, free: 43.83 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003778/0.8066, allocations: 3.418 MB / 0.6343 GB, free: 42.28 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00509/0.8117, allocations: 5.047 MB / 0.6393 GB, free: 39.69 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000735/0.8125, allocations: 465.8 kB / 0.6397 GB, free: 39.38 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002919/0.8128, allocations: 7.938 kB / 0.6397 GB, free: 39.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.8138, allocations: 52.77 kB / 0.6398 GB, free: 39.37 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.8139, allocations: 78.53 kB / 0.6398 GB, free: 39.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.8141, allocations: 50 kB / 0.6399 GB, free: 39.35 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001289/0.8154, allocations: 1.031 MB / 0.6409 GB, free: 38.92 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002443/0.8178, allocations: 0.5606 MB / 0.6414 GB, free: 38.86 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (159): * Single equations (assignments): 156 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005916/0.8184, allocations: 475.2 kB / 0.6419 GB, free: 38.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002935/0.8214, allocations: 2.264 MB / 0.6441 GB, free: 37.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.8214, allocations: 1.094 kB / 0.6441 GB, free: 37.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001417/0.8228, allocations: 1.235 MB / 0.6453 GB, free: 37.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/0.8245, allocations: 390.4 kB / 0.6457 GB, free: 36.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007981/0.8325, allocations: 4.522 MB / 0.6501 GB, free: 35.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002388/0.8349, allocations: 2.49 MB / 0.6525 GB, free: 34.08 MB / 442.7 MB Notification: Performance of SimCode: time 5.91e-07/0.8349, allocations: 0 / 0.6525 GB, free: 34.08 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat