Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.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_Braking,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking",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.001034/0.001034, allocations: 195.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.144/1.144, allocations: 225.5 MB / 234.4 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000907/0.000907, allocations: 92.42 kB / 286.3 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09242/0.09335, allocations: 56.92 MB / 343.3 MB, free: 8.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08024/0.1736, allocations: 51.47 MB / 394.7 MB, free: 5.047 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2215/0.3951, allocations: 116.9 MB / 0.4996 GB, free: 8.844 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.3954, allocations: 92.81 kB / 0.4997 GB, free: 8.793 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: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.3191/0.7146, allocations: 82.04 MB / 0.5798 GB, free: 55.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.7146, allocations: 7.594 kB / 0.5798 GB, free: 55.75 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002388/0.717, allocations: 0.6069 MB / 0.5804 GB, free: 55.56 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005643/0.7227, allocations: 3.155 MB / 0.5835 GB, free: 55.04 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.87e-05/0.7228, allocations: 104 kB / 0.5836 GB, free: 55.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003573/0.7231, allocations: 184.8 kB / 0.5838 GB, free: 55.03 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004393/0.7275, allocations: 3.122 MB / 0.5868 GB, free: 55.02 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004857/0.7324, allocations: 3.636 MB / 0.5904 GB, free: 54.54 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.929e-05/0.7325, allocations: 0 / 0.5904 GB, free: 54.54 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002454/0.7327, allocations: 3 kB / 0.5904 GB, free: 54.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.973e-05/0.7328, allocations: 145.1 kB / 0.5905 GB, free: 54.53 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01507/0.7479, allocations: 13.44 MB / 0.6036 GB, free: 51 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.7491, allocations: 1.117 MB / 0.6047 GB, free: 50.97 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001581/0.7507, allocations: 1.366 MB / 0.6061 GB, free: 50.96 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004226/0.755, allocations: 3.375 MB / 0.6094 GB, free: 50.21 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.755, allocations: 57.97 kB / 0.6094 GB, free: 50.18 MB / 442.7 MB Notification: Performance of pre-optimization done (n=164): time 3.497e-06/0.755, allocations: 0 / 0.6094 GB, free: 50.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=168): time 0.006815/0.7618, allocations: 4.92 MB / 0.6142 GB, free: 49.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.462e-05/0.7619, allocations: 93.14 kB / 0.6143 GB, free: 48.92 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001578/0.7635, allocations: 1.422 MB / 0.6157 GB, free: 48.75 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.525e-05/0.7636, allocations: 27.83 kB / 0.6157 GB, free: 48.71 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000374/0.7639, allocations: 1.152 MB / 0.6169 GB, free: 48.03 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002865/0.7642, allocations: 0.5379 MB / 0.6174 GB, free: 47.67 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.66e-05/0.7643, allocations: 1.688 kB / 0.6174 GB, free: 47.67 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.194e-05/0.7644, allocations: 383 kB / 0.6178 GB, free: 47.37 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009476/0.7654, allocations: 0.803 MB / 0.6185 GB, free: 47.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.7665, allocations: 1.34 MB / 0.6198 GB, free: 46.74 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/0.7679, allocations: 1.047 MB / 0.6209 GB, free: 46.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.7679, allocations: 3.594 kB / 0.6209 GB, free: 46.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.003587/0.7715, allocations: 2.78 MB / 0.6236 GB, free: 46.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008001/0.7723, allocations: 6.533 MB / 0.63 GB, free: 39.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.7723, allocations: 15.12 kB / 0.63 GB, free: 39.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/0.7734, allocations: 0.5199 MB / 0.6305 GB, free: 39.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.7748, allocations: 401 kB / 0.6309 GB, free: 39.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005107/0.7799, allocations: 6.688 MB / 0.6374 GB, free: 35.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/0.7811, allocations: 52.56 kB / 0.6374 GB, free: 35.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001418/0.7813, allocations: 79.16 kB / 0.6375 GB, free: 35.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.499e-06/0.7813, allocations: 2.969 kB / 0.6375 GB, free: 35.65 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00343/0.7847, allocations: 2.552 MB / 0.64 GB, free: 35.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.7848, allocations: 15.59 kB / 0.64 GB, free: 35.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009224/0.7857, allocations: 0.5217 MB / 0.6405 GB, free: 34.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/0.7871, allocations: 389.6 kB / 0.6409 GB, free: 34.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004894/0.792, allocations: 6.667 MB / 0.6474 GB, free: 29.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/0.7931, allocations: 49.52 kB / 0.6475 GB, free: 29.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/0.7933, allocations: 82.81 kB / 0.6476 GB, free: 29.92 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 210 * 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: 3 * 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%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0002831/0.7936, allocations: 167.4 kB / 0.6477 GB, free: 29.79 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002382/0.7938, allocations: 206.3 kB / 0.6479 GB, free: 29.69 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003615/0.7974, allocations: 2.621 MB / 0.6505 GB, free: 28.52 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.7974, allocations: 14.69 kB / 0.6505 GB, free: 28.52 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.7975, allocations: 3.844 kB / 0.6505 GB, free: 28.52 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.7975, allocations: 9.562 kB / 0.6505 GB, free: 28.52 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007153/0.8046, allocations: 5.396 MB / 0.6558 GB, free: 26.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.493e-06/0.8047, allocations: 2.781 kB / 0.6558 GB, free: 26.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.8057, allocations: 228 kB / 0.656 GB, free: 26.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001432/0.8071, allocations: 0.6488 MB / 0.6566 GB, free: 25.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.8072, allocations: 14.06 kB / 0.6566 GB, free: 25.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00876/0.816, allocations: 10.45 MB / 0.6668 GB, free: 33.68 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.816, allocations: 2.188 kB / 0.6668 GB, free: 33.68 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005194/0.8212, allocations: 4.057 MB / 0.6708 GB, free: 31.65 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006589/0.8278, allocations: 5.71 MB / 0.6764 GB, free: 28.69 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000865/0.8287, allocations: 481.7 kB / 0.6768 GB, free: 28.37 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003011/0.829, allocations: 4.438 kB / 0.6768 GB, free: 28.37 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009863/0.83, allocations: 55.41 kB / 0.6769 GB, free: 28.37 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.8302, allocations: 95.42 kB / 0.677 GB, free: 28.35 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.8303, allocations: 44.66 kB / 0.677 GB, free: 28.34 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001487/0.8318, allocations: 1.063 MB / 0.6781 GB, free: 27.89 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004226/0.8361, allocations: 1.081 MB / 0.6791 GB, free: 27.79 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 112 * 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: 4 {(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005549/0.8366, allocations: 479.7 kB / 0.6796 GB, free: 27.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004609/0.8412, allocations: 4.226 MB / 0.6837 GB, free: 25.48 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.8413, allocations: 0 / 0.6837 GB, free: 25.48 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001939/0.8432, allocations: 1.699 MB / 0.6854 GB, free: 24.52 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/0.845, allocations: 493.2 kB / 0.6858 GB, free: 24.39 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007768/0.8528, allocations: 4.872 MB / 0.6906 GB, free: 22.42 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002161/0.855, allocations: 2.512 MB / 0.693 GB, free: 21.35 MB / 458.7 MB Notification: Performance of SimCode: time 3.21e-07/0.855, allocations: 0 / 0.693 GB, free: 21.35 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat