Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.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_Braking,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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 3.2.3+maint.om/package.mo): time 0.001028/0.001028, allocations: 175.4 kB / 8.476 MB, free: 1.852 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.13/1.13, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.0008839/0.0008839, allocations: 86.3 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1509/0.1519, allocations: 52.98 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06153/0.2134, allocations: 47.58 MB / 362.6 MB, free: 9.863 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2331/0.4465, allocations: 114.9 MB / 477.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.4468, allocations: 86.45 kB / 477.6 MB, free: 10.44 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: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.2025/0.6493, allocations: 79.1 MB / 0.5436 GB, free: 1.883 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.6494, allocations: 8 kB / 0.5436 GB, free: 1.875 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00311/0.6525, allocations: 0.6045 MB / 0.5442 GB, free: 1.266 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007794/0.6603, allocations: 3.151 MB / 0.5473 GB, free: 14.06 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001326/0.6605, allocations: 100 kB / 0.5474 GB, free: 13.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006314/0.6611, allocations: 187.9 kB / 0.5476 GB, free: 13.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006158/0.6673, allocations: 3.125 MB / 0.5506 GB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006726/0.674, allocations: 3.644 MB / 0.5542 GB, free: 6.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.89e-05/0.6741, allocations: 7.938 kB / 0.5542 GB, free: 6.832 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000289/0.6744, allocations: 7.906 kB / 0.5542 GB, free: 6.824 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001273/0.6745, allocations: 142.1 kB / 0.5543 GB, free: 6.684 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02082/0.6954, allocations: 13.28 MB / 0.5673 GB, free: 9.039 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001645/0.697, allocations: 1.114 MB / 0.5684 GB, free: 7.922 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001991/0.6991, allocations: 1.321 MB / 0.5697 GB, free: 6.598 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005687/0.7048, allocations: 3.2 MB / 0.5728 GB, free: 3.324 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.146e-05/0.7048, allocations: 55.78 kB / 0.5729 GB, free: 3.262 MB / 426.7 MB Notification: Performance of pre-optimization done (n=164): time 4.038e-06/0.7048, allocations: 0 / 0.5729 GB, free: 3.262 MB / 426.7 MB Notification: Performance of matching and sorting (n=168): time 0.121/0.8259, allocations: 4.896 MB / 0.5777 GB, free: 132.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.8259, allocations: 97.58 kB / 0.5778 GB, free: 132.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001958/0.8279, allocations: 1.416 MB / 0.5791 GB, free: 132 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002039/0.8281, allocations: 25.7 kB / 0.5792 GB, free: 131.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004354/0.8286, allocations: 1.149 MB / 0.5803 GB, free: 131.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003435/0.8289, allocations: 0.5421 MB / 0.5808 GB, free: 131.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.207e-05/0.829, allocations: 0 / 0.5808 GB, free: 131.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.553e-05/0.8291, allocations: 384.3 kB / 0.5812 GB, free: 131 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/0.8302, allocations: 0.8026 MB / 0.582 GB, free: 131 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.8314, allocations: 1.327 MB / 0.5833 GB, free: 130.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0015/0.8329, allocations: 1.043 MB / 0.5843 GB, free: 130.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.8329, allocations: 10.53 kB / 0.5843 GB, free: 130.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.004001/0.8369, allocations: 2.77 MB / 0.587 GB, free: 130.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009467/0.8379, allocations: 6.529 MB / 0.5934 GB, free: 123.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/0.8379, allocations: 21.94 kB / 0.5934 GB, free: 123.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.839, allocations: 0.5181 MB / 0.5939 GB, free: 123.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001633/0.8407, allocations: 407.2 kB / 0.5943 GB, free: 123.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0055/0.8462, allocations: 6.658 MB / 0.6008 GB, free: 119.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/0.8478, allocations: 56.41 kB / 0.6008 GB, free: 119.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/0.848, allocations: 78.47 kB / 0.6009 GB, free: 119.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.622e-06/0.848, allocations: 3.938 kB / 0.6009 GB, free: 119.5 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003646/0.8516, allocations: 2.536 MB / 0.6034 GB, free: 119.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.242e-05/0.8517, allocations: 18.62 kB / 0.6034 GB, free: 119.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/0.8527, allocations: 0.5315 MB / 0.6039 GB, free: 119.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/0.8543, allocations: 397.5 kB / 0.6043 GB, free: 119.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005446/0.8598, allocations: 6.662 MB / 0.6108 GB, free: 115.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001713/0.8615, allocations: 46.5 kB / 0.6109 GB, free: 115.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002824/0.8618, allocations: 83.41 kB / 0.6109 GB, free: 115.5 MB / 426.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.0004972/0.8623, allocations: 160.5 kB / 0.6111 GB, free: 115.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004499/0.8628, allocations: 202.3 kB / 0.6113 GB, free: 115.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004174/0.867, allocations: 2.621 MB / 0.6138 GB, free: 115 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.867, allocations: 14.81 kB / 0.6139 GB, free: 115 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.867, allocations: 3.844 kB / 0.6139 GB, free: 115 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.556e-05/0.8671, allocations: 11.33 kB / 0.6139 GB, free: 115 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008211/0.8753, allocations: 5.396 MB / 0.6191 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.8753, allocations: 5.594 kB / 0.6191 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.8764, allocations: 213 kB / 0.6194 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00151/0.8779, allocations: 0.6626 MB / 0.62 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.878, allocations: 13.33 kB / 0.62 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008798/0.8868, allocations: 10.46 MB / 0.6302 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.8869, allocations: 0 / 0.6302 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005343/0.8922, allocations: 4.052 MB / 0.6342 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006558/0.8988, allocations: 5.699 MB / 0.6397 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.8999, allocations: 473.6 kB / 0.6402 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000495/0.9004, allocations: 5.344 kB / 0.6402 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/0.9017, allocations: 50.95 kB / 0.6402 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002171/0.9019, allocations: 102.6 kB / 0.6403 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.902, allocations: 44.02 kB / 0.6404 GB, free: 104.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001642/0.9037, allocations: 1.058 MB / 0.6414 GB, free: 104.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004923/0.9086, allocations: 1.053 MB / 0.6425 GB, free: 104.3 MB / 426.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%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006538/0.9093, allocations: 443.9 kB / 0.6429 GB, free: 104.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00547/0.9148, allocations: 4.223 MB / 0.647 GB, free: 102.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.9148, allocations: 0 / 0.647 GB, free: 102.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00221/0.917, allocations: 1.692 MB / 0.6487 GB, free: 101.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002508/0.9196, allocations: 494.4 kB / 0.6491 GB, free: 101.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01052/0.9301, allocations: 4.869 MB / 0.6539 GB, free: 99.22 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003021/0.9331, allocations: 2.504 MB / 0.6563 GB, free: 98.16 MB / 426.7 MB Notification: Performance of SimCode: time 8.31e-07/0.9332, allocations: 2.438 kB / 0.6563 GB, free: 98.16 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat