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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001076/0.001076, allocations: 195.3 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001186/0.001186, allocations: 85.45 kB / 292.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.414e-05/3.429e-05, allocations: 0 / 350.7 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1172, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4211/0.5384, allocations: 117.6 MB / 0.5076 GB, free: 4.457 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/0.5388, allocations: 94.38 kB / 0.5077 GB, free: 4.406 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4978/1.037, allocations: 79.91 MB / 0.5857 GB, free: 76.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.182e-06/1.037, allocations: 0 / 0.5857 GB, free: 76.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002343/1.037, allocations: 84.31 kB / 0.5858 GB, free: 76.51 MB / 442.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.009333/1.046, allocations: 3.231 MB / 0.5889 GB, free: 75.33 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/1.046, allocations: 9.844 kB / 0.5889 GB, free: 75.33 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001261/1.048, allocations: 445.6 kB / 0.5894 GB, free: 75.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003193/1.051, allocations: 0.6034 MB / 0.59 GB, free: 75.08 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008216/1.059, allocations: 3.156 MB / 0.593 GB, free: 74.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000208/1.059, allocations: 232.1 kB / 0.5933 GB, free: 74.54 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008907/1.06, allocations: 310.7 kB / 0.5936 GB, free: 74.54 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007073/1.067, allocations: 4.047 MB / 0.5975 GB, free: 74.05 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.65e-05/1.067, allocations: 7.125 kB / 0.5975 GB, free: 74.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003281/1.068, allocations: 139 kB / 0.5977 GB, free: 74.05 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000138/1.068, allocations: 137.3 kB / 0.5978 GB, free: 74.04 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005597/1.073, allocations: 3.256 MB / 0.601 GB, free: 74.01 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02911/1.103, allocations: 13.98 MB / 0.6146 GB, free: 70.31 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00661/1.109, allocations: 6.102 MB / 0.6206 GB, free: 65.84 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002559/1.112, allocations: 1.352 MB / 0.6219 GB, free: 65.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007443/1.119, allocations: 3.338 MB / 0.6252 GB, free: 63.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/1.119, allocations: 53.58 kB / 0.6252 GB, free: 63.82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 4.448e-06/1.119, allocations: 0 / 0.6252 GB, free: 63.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=139): time 0.009426/1.129, allocations: 4.462 MB / 0.6296 GB, free: 61.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.409e-05/1.129, allocations: 95.45 kB / 0.6297 GB, free: 61.41 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004477/1.133, allocations: 1.681 MB / 0.6313 GB, free: 60.71 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002741/1.134, allocations: 47.48 kB / 0.6313 GB, free: 60.66 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001267/1.135, allocations: 1.468 MB / 0.6328 GB, free: 59.54 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006761/1.136, allocations: 477.9 kB / 0.6332 GB, free: 59.18 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/1.136, allocations: 35.62 kB / 0.6333 GB, free: 59.15 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001923/1.136, allocations: 373.8 kB / 0.6336 GB, free: 58.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001532/1.138, allocations: 0.7045 MB / 0.6343 GB, free: 58.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001717/1.139, allocations: 1.232 MB / 0.6355 GB, free: 57.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001713/1.141, allocations: 0.9007 MB / 0.6364 GB, free: 57.24 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-05/1.141, allocations: 5.562 kB / 0.6364 GB, free: 57.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004618/1.146, allocations: 2.627 MB / 0.639 GB, free: 56.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001494/1.147, allocations: 6.614 MB / 0.6454 GB, free: 49.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.25e-05/1.147, allocations: 15.62 kB / 0.6454 GB, free: 49.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/1.149, allocations: 0.4946 MB / 0.6459 GB, free: 48.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001496/1.15, allocations: 364.9 kB / 0.6463 GB, free: 48.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006451/1.157, allocations: 7.027 MB / 0.6531 GB, free: 43.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002054/1.159, allocations: 101.8 kB / 0.6532 GB, free: 43.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002547/1.159, allocations: 81.33 kB / 0.6533 GB, free: 43.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.044e-05/1.159, allocations: 3.844 kB / 0.6533 GB, free: 43.5 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003795/1.163, allocations: 2.416 MB / 0.6557 GB, free: 42.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.818e-05/1.163, allocations: 19.53 kB / 0.6557 GB, free: 42.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009546/1.164, allocations: 0.494 MB / 0.6562 GB, free: 42.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/1.165, allocations: 359.4 kB / 0.6565 GB, free: 42.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005843/1.171, allocations: 7.033 MB / 0.6634 GB, free: 36.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001854/1.173, allocations: 91.64 kB / 0.6635 GB, free: 36.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002404/1.173, allocations: 76.52 kB / 0.6635 GB, free: 36.82 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 (188): * Single equations (assignments): 184 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005026/1.174, allocations: 218.2 kB / 0.6637 GB, free: 36.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007111/1.174, allocations: 206.7 kB / 0.6639 GB, free: 36.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004028/1.178, allocations: 2.377 MB / 0.6663 GB, free: 35.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/1.178, allocations: 10.41 kB / 0.6663 GB, free: 35.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.511e-05/1.178, allocations: 6 kB / 0.6663 GB, free: 35.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/1.178, allocations: 7.266 kB / 0.6663 GB, free: 35.38 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009761/1.188, allocations: 5.236 MB / 0.6714 GB, free: 32.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/1.188, allocations: 3.406 kB / 0.6714 GB, free: 32.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007856/1.189, allocations: 182.5 kB / 0.6716 GB, free: 32.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001399/1.19, allocations: 0.628 MB / 0.6722 GB, free: 32.72 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/1.19, allocations: 24.66 kB / 0.6722 GB, free: 32.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009256/1.2, allocations: 11.06 MB / 0.683 GB, free: 23.88 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/1.2, allocations: 3.406 kB / 0.683 GB, free: 23.88 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00559/1.205, allocations: 3.604 MB / 0.6865 GB, free: 21.95 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001707/1.207, allocations: 466.6 kB / 0.687 GB, free: 21.63 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008637/1.208, allocations: 26.56 kB / 0.687 GB, free: 21.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001606/1.21, allocations: 79.94 kB / 0.6871 GB, free: 21.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003881/1.21, allocations: 121.5 kB / 0.6872 GB, free: 21.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/1.21, allocations: 37.62 kB / 0.6872 GB, free: 21.56 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002662/1.213, allocations: 1.295 MB / 0.6885 GB, free: 21.01 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.213, allocations: 0 / 0.6885 GB, free: 21.01 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00553/1.218, allocations: 1.121 MB / 0.6896 GB, free: 20.9 MB / 442.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 (91): * Single equations (assignments): 86 * 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%) 5,(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.006314/1.225, allocations: 5.086 MB / 0.6946 GB, free: 17.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006134/1.231, allocations: 4.065 MB / 0.6985 GB, free: 15.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/1.231, allocations: 3.938 kB / 0.6985 GB, free: 15.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002206/1.233, allocations: 1.711 MB / 0.7002 GB, free: 14.62 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00336/1.237, allocations: 0.6023 MB / 0.7008 GB, free: 14.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/1.25, allocations: 5.458 MB / 0.7061 GB, free: 12.18 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002581/1.252, allocations: 2.381 MB / 0.7084 GB, free: 11.13 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003598/1.256, allocations: 0.8048 MB / 0.7092 GB, free: 11.06 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001498/1.258, allocations: 1.136 MB / 0.7103 GB, free: 10.09 MB / 442.7 MB Notification: Performance of SimCode: time 2.124e-06/1.258, allocations: 0 / 0.7103 GB, free: 10.09 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3943/1.652, allocations: 67.26 MB / 0.776 GB, free: 73.67 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001713/1.652, allocations: 232 kB / 0.7763 GB, free: 73.41 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.958/5.61, allocations: 0 / 0.7763 GB, free: 73.41 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