Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009625/0.0009625, allocations: 94.14 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001146, allocations: 183.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003949/0.0003954, allocations: 5.812 kB / 300.8 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1359, allocations: 50.41 MB / 351.2 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01643/0.1524, allocations: 9.21 MB / 360.4 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01102/0.1634, allocations: 3.461 MB / 363.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003252/0.1667, allocations: 55.69 kB / 364 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003565/0.1703, allocations: 0.7075 MB / 364.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005115/0.1755, allocations: 0.8256 MB / 365.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002066/0.1776, allocations: 279.6 kB / 365.8 MB, free: 13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00628/0.1839, allocations: 2.379 MB / 368.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003744/0.1876, allocations: 1.946 MB / 370.1 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003294/0.191, allocations: 1.136 MB / 371.2 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003339/0.1943, allocations: 1.377 MB / 372.6 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001036/0.1954, allocations: 180 kB / 372.8 MB, free: 5.938 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001446/0.1968, allocations: 239.9 kB / 373 MB, free: 5.703 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001014/0.1979, allocations: 0.8607 MB / 373.9 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.1989, allocations: 0.6679 MB / 374.5 MB, free: 4.164 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006016/0.205, allocations: 4.383 MB / 378.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.205, allocations: 0 / 378.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.205, allocations: 0 / 378.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002547/0.2053, allocations: 0 / 378.9 MB, free: 15.77 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.008749/0.2141, allocations: 3.244 MB / 382.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.2141, allocations: 11.97 kB / 382.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009505/0.2151, allocations: 412.9 kB / 382.6 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/0.2162, allocations: 387.7 kB / 383 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004127/0.2204, allocations: 1.954 MB / 384.9 MB, free: 9.641 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/0.2206, allocations: 209.7 kB / 385.1 MB, free: 9.434 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004353/0.221, allocations: 291.8 kB / 385.4 MB, free: 9.148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007233/0.2282, allocations: 3.814 MB / 389.2 MB, free: 5.246 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.346e-05/0.2284, allocations: 4 kB / 389.2 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002714/0.2286, allocations: 116 kB / 389.3 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001344/0.2288, allocations: 121.5 kB / 389.5 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006754/0.2355, allocations: 3.23 MB / 392.7 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02271/0.2583, allocations: 11.95 MB / 404.6 MB, free: 5.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003541/0.2619, allocations: 3.648 MB / 408.3 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000297/0.2622, allocations: 126.4 kB / 408.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.221e-05/0.2623, allocations: 51.86 kB / 408.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 4.649e-06/0.2623, allocations: 4 kB / 408.5 MB, free: 1.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01545/0.2777, allocations: 7.458 MB / 415.9 MB, free: 9.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.2778, allocations: 68.72 kB / 416 MB, free: 9.422 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003799/0.2816, allocations: 2.025 MB / 418 MB, free: 7.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002601/0.2819, allocations: 53.7 kB / 418.1 MB, free: 7.297 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001237/0.2831, allocations: 1.374 MB / 419.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005265/0.2837, allocations: 0.5122 MB / 420 MB, free: 5.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.147e-05/0.2838, allocations: 36 kB / 420 MB, free: 5.352 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002892/0.2841, allocations: 381.9 kB / 420.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001403/0.2855, allocations: 0.8666 MB / 421.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.2872, allocations: 1.36 MB / 422.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/0.2887, allocations: 1.099 MB / 423.7 MB, free: 1.445 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/0.2888, allocations: 4 kB / 423.7 MB, free: 1.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.2416/0.5304, allocations: 3.248 MB / 426.9 MB, free: 60.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.415e-05/0.5304, allocations: 8.031 kB / 426.9 MB, free: 60.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.214e-05/0.5305, allocations: 16.25 kB / 427 MB, free: 60.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002281/0.5328, allocations: 0.8346 MB / 427.8 MB, free: 60.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001414/0.5342, allocations: 350.7 kB / 428.1 MB, free: 60.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01482/0.549, allocations: 18.93 MB / 447.1 MB, free: 46.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/0.5508, allocations: 91.02 kB / 447.2 MB, free: 46.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/0.5509, allocations: 74.88 kB / 447.2 MB, free: 46.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 186 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00177/0.5527, allocations: 0.9389 MB / 448.2 MB, free: 46.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004621/0.5532, allocations: 214.8 kB / 448.4 MB, free: 46.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004186/0.5574, allocations: 2.62 MB / 451 MB, free: 45.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.5574, allocations: 19.69 kB / 451 MB, free: 45.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/0.5574, allocations: 3.969 kB / 451 MB, free: 45.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.5575, allocations: 7.547 kB / 451 MB, free: 45.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008961/0.5664, allocations: 5.87 MB / 456.9 MB, free: 42.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.5665, allocations: 3.969 kB / 456.9 MB, free: 42.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007087/0.5672, allocations: 204.5 kB / 457.1 MB, free: 42.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001594/0.5688, allocations: 0.7204 MB / 457.8 MB, free: 42.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.36e-05/0.5689, allocations: 39.69 kB / 457.9 MB, free: 42.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01032/0.5792, allocations: 16.79 MB / 474.7 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.5793, allocations: 15.92 kB / 474.7 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005372/0.5846, allocations: 4.039 MB / 478.7 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/0.586, allocations: 492.8 kB / 479.2 MB, free: 21.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002999/0.5863, allocations: 32 kB / 479.2 MB, free: 21.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009951/0.5873, allocations: 111.9 kB / 479.3 MB, free: 21.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003715/0.5877, allocations: 145 kB / 479.5 MB, free: 21.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.322e-05/0.5878, allocations: 43.98 kB / 479.5 MB, free: 21.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001928/0.5897, allocations: 1.369 MB / 480.9 MB, free: 19.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5897, allocations: 0 / 480.9 MB, free: 19.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00284/0.5925, allocations: 0.6604 MB / 481.5 MB, free: 19.08 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 111 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005099/0.5977, allocations: 5.608 MB / 487.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00407/0.6018, allocations: 3.441 MB / 490.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.6018, allocations: 4.125 kB / 490.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002011/0.6038, allocations: 2.199 MB / 492.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002886/0.6067, allocations: 0.6231 MB / 493.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0162/0.6229, allocations: 19.99 MB / 0.5014 GB, free: 1.621 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002214/0.6252, allocations: 2.346 MB / 0.5037 GB, free: 15.24 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001835/0.627, allocations: 0.4987 MB / 0.5042 GB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001419/0.6285, allocations: 1.089 MB / 0.5052 GB, free: 13.65 MB / 382.1 MB Notification: Performance of SimCode: time 9.61e-07/0.6285, allocations: 0 / 0.5052 GB, free: 13.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09314/0.7216, allocations: 55.95 MB / 0.5599 GB, free: 6.316 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.7218, allocations: 233.7 kB / 0.5601 GB, free: 6.078 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.235/3.956, allocations: 0 / 0.5601 GB, free: 6.078 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat does not exist to compare? outputFormat=mat