Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009558/0.0009561, allocations: 98.5 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001193/0.001193, allocations: 194.5 kB / 17.9 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.3 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002583/0.0002583, allocations: 8 kB / 306.8 MB, free: 1.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1131, allocations: 51.49 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01168/0.1248, allocations: 10.19 MB / 368.5 MB, free: 3.504 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2218/0.3466, allocations: 3.55 MB / 372.1 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002511/0.3492, allocations: 62.03 kB / 372.1 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002151/0.3514, allocations: 0.6554 MB / 372.8 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002954/0.3543, allocations: 0.7934 MB / 373.6 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.3554, allocations: 320 kB / 373.9 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004999/0.3604, allocations: 3.39 MB / 377.3 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002571/0.363, allocations: 1.745 MB / 379 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00252/0.3655, allocations: 1.104 MB / 380.1 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002424/0.3679, allocations: 1.47 MB / 381.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003682/0.3683, allocations: 162.5 kB / 381.7 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007976/0.3691, allocations: 232.8 kB / 382 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.3702, allocations: 0.8159 MB / 382.8 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008432/0.371, allocations: 0.6053 MB / 383.4 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00426/0.3753, allocations: 4.114 MB / 387.5 MB, free: 6.461 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.3753, allocations: 0 / 387.5 MB, free: 6.461 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.3753, allocations: 0 / 387.5 MB, free: 6.461 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.304e-05/0.3754, allocations: 1.859 kB / 387.5 MB, free: 6.461 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.006185/0.3816, allocations: 2.984 MB / 390.5 MB, free: 4.688 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.3817, allocations: 10.09 kB / 390.5 MB, free: 4.688 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005013/0.3822, allocations: 366.6 kB / 390.9 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009414/0.3831, allocations: 355.5 kB / 391.2 MB, free: 4.398 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002794/0.386, allocations: 1.795 MB / 393 MB, free: 3.629 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001635/0.3861, allocations: 183.8 kB / 393.2 MB, free: 3.621 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003887/0.3865, allocations: 252.3 kB / 393.4 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005466/0.392, allocations: 3.404 MB / 396.8 MB, free: 1.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.223e-05/0.3921, allocations: 5.781 kB / 396.8 MB, free: 1.953 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002189/0.3923, allocations: 108.1 kB / 396.9 MB, free: 1.871 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001121/0.3924, allocations: 121.8 kB / 397.1 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004251/0.3967, allocations: 2.917 MB / 400 MB, free: 332 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01678/0.4134, allocations: 10.91 MB / 410.9 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003346/0.4168, allocations: 2.431 MB / 413.3 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001954/0.4188, allocations: 1.189 MB / 414.5 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002874/0.4191, allocations: 122.4 kB / 414.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.471e-05/0.4192, allocations: 55.81 kB / 414.7 MB, free: 1.336 MB / 318.1 MB Notification: Performance of pre-optimization done (n=133): time 3.206e-06/0.4192, allocations: 0 / 414.7 MB, free: 1.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.01604/0.4352, allocations: 7.27 MB / 422 MB, free: 9.941 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.171e-05/0.4354, allocations: 94.42 kB / 422 MB, free: 9.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003114/0.4385, allocations: 1.827 MB / 423.9 MB, free: 8.008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000123/0.4386, allocations: 49.64 kB / 423.9 MB, free: 7.953 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009799/0.4396, allocations: 1.228 MB / 425.1 MB, free: 6.715 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004717/0.4401, allocations: 497.5 kB / 425.6 MB, free: 6.234 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.793e-05/0.4402, allocations: 36 kB / 425.7 MB, free: 6.199 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002136/0.4404, allocations: 373.9 kB / 426 MB, free: 5.828 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/0.4418, allocations: 0.8472 MB / 426.9 MB, free: 4.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/0.4437, allocations: 1.312 MB / 428.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/0.4453, allocations: 1.025 MB / 429.2 MB, free: 2.445 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.4453, allocations: 8 kB / 429.2 MB, free: 2.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004976/0.4503, allocations: 2.84 MB / 432.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004998/0.4508, allocations: 0.5039 MB / 432.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-05/0.4508, allocations: 12 kB / 432.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001595/0.4525, allocations: 0.6602 MB / 433.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.4537, allocations: 363.4 kB / 433.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009791/0.4635, allocations: 8.303 MB / 441.9 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002435/0.466, allocations: 119.8 kB / 442 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002001/0.4662, allocations: 68 kB / 442.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.4662, allocations: 4 kB / 442.1 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004586/0.4708, allocations: 2.626 MB / 444.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.599e-05/0.4708, allocations: 12 kB / 444.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001512/0.4724, allocations: 0.6714 MB / 445.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.4735, allocations: 351.4 kB / 445.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009937/0.4835, allocations: 8.3 MB / 454 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002093/0.4856, allocations: 111.8 kB / 454.2 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002645/0.4859, allocations: 68 kB / 454.2 MB, free: 8.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (181): * Single equations (assignments): 177 * 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 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002479/0.4884, allocations: 0.934 MB / 455.2 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007036/0.4891, allocations: 197.6 kB / 455.3 MB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005138/0.4942, allocations: 2.555 MB / 457.9 MB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.835e-05/0.4943, allocations: 16 kB / 457.9 MB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.583e-05/0.4943, allocations: 8.188 kB / 457.9 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.668e-05/0.4943, allocations: 7.969 kB / 457.9 MB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/0.5055, allocations: 5.428 MB / 463.4 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.5056, allocations: 0 / 463.4 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009526/0.5065, allocations: 228 kB / 463.6 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001753/0.5083, allocations: 0.6961 MB / 464.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.5084, allocations: 27.98 kB / 464.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01244/0.5209, allocations: 9.779 MB / 474.1 MB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/0.5209, allocations: 7.938 kB / 474.1 MB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007395/0.5283, allocations: 3.744 MB / 477.8 MB, free: 100 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001674/0.53, allocations: 470.4 kB / 478.3 MB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000871/0.5309, allocations: 32.25 kB / 478.3 MB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001555/0.5325, allocations: 107.8 kB / 478.4 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003847/0.5329, allocations: 121.1 kB / 478.5 MB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001183/0.533, allocations: 39.98 kB / 478.6 MB, free: 15.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002786/0.5358, allocations: 1.252 MB / 479.8 MB, free: 14.08 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5358, allocations: 4 kB / 479.8 MB, free: 14.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004219/0.54, allocations: 1.004 MB / 480.8 MB, free: 13.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * 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: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.006363/0.5464, allocations: 4.355 MB / 485.2 MB, free: 8.652 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007093/0.5535, allocations: 4.492 MB / 489.7 MB, free: 4.047 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.066e-06/0.5535, allocations: 0 / 489.7 MB, free: 4.047 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002655/0.5562, allocations: 1.728 MB / 491.4 MB, free: 2.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003719/0.5599, allocations: 0.6021 MB / 492 MB, free: 1.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04059/0.6005, allocations: 16.79 MB / 0.4969 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002497/0.6031, allocations: 2.095 MB / 0.4989 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002346/0.6054, allocations: 0.5912 MB / 0.4995 GB, free: 13.13 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001415/0.6069, allocations: 0.9757 MB / 0.5005 GB, free: 12.15 MB / 430.1 MB Notification: Performance of SimCode: time 1.252e-06/0.6069, allocations: 0 / 0.5005 GB, free: 12.15 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3259/0.9328, allocations: 58.66 MB / 0.5578 GB, free: 130.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001507/0.933, allocations: 240.2 kB / 0.558 GB, free: 130.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.637/4.57, allocations: 0 / 0.558 GB, free: 130.6 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat