Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_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/Complex trunk/package.mo): time 0.001698/0.001697, allocations: 197.2 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.71/1.71, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000907/0.000907, allocations: 91.28 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.094e-05/4.095e-05, allocations: 4 kB / 350.7 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1257, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3785/0.5042, allocations: 108.5 MB / 0.4986 GB, free: 13.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002568/0.5045, allocations: 82.67 kB / 0.4987 GB, free: 13.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1462/0.6508, allocations: 58.34 MB / 0.5557 GB, free: 4.012 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.6508, allocations: 0 / 0.5557 GB, free: 4.012 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002671/0.6511, allocations: 83.88 kB / 0.5558 GB, free: 3.93 MB / 426.7 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.007562/0.6587, allocations: 2.892 MB / 0.5586 GB, free: 0.9805 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.695e-05/0.6587, allocations: 12.02 kB / 0.5586 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001259/0.66, allocations: 412.8 kB / 0.559 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001521/0.6615, allocations: 403.5 kB / 0.5594 GB, free: 160 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004808/0.6664, allocations: 2.047 MB / 0.5614 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001885/0.6666, allocations: 214 kB / 0.5616 GB, free: 13.84 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005766/0.6672, allocations: 284 kB / 0.5619 GB, free: 13.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006855/0.674, allocations: 3.743 MB / 0.5655 GB, free: 9.656 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.88e-05/0.6741, allocations: 15.84 kB / 0.5655 GB, free: 9.641 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003376/0.6745, allocations: 120 kB / 0.5656 GB, free: 9.523 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001166/0.6746, allocations: 109.5 kB / 0.5657 GB, free: 9.414 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005041/0.6797, allocations: 2.993 MB / 0.5687 GB, free: 6.41 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2784/0.9581, allocations: 11.77 MB / 0.5802 GB, free: 79.21 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003159/0.9613, allocations: 3.659 MB / 0.5837 GB, free: 76.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00179/0.9631, allocations: 1.136 MB / 0.5848 GB, free: 76.89 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000353/0.9635, allocations: 133.2 kB / 0.585 GB, free: 76.79 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.833e-05/0.9635, allocations: 53.41 kB / 0.585 GB, free: 76.75 MB / 442.7 MB Notification: Performance of pre-optimization done (n=139): time 3.486e-06/0.9635, allocations: 3.406 kB / 0.585 GB, free: 76.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=160): time 0.01324/0.9768, allocations: 6.504 MB / 0.5914 GB, free: 75.92 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.096e-05/0.9769, allocations: 65.91 kB / 0.5914 GB, free: 75.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002799/0.9797, allocations: 1.783 MB / 0.5932 GB, free: 75.63 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001414/0.9798, allocations: 56.27 kB / 0.5932 GB, free: 75.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008303/0.9807, allocations: 1.352 MB / 0.5946 GB, free: 75.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003855/0.9811, allocations: 0.5384 MB / 0.5951 GB, free: 74.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.341e-05/0.9812, allocations: 39.88 kB / 0.5951 GB, free: 74.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.9813, allocations: 378.3 kB / 0.5955 GB, free: 74.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/0.9826, allocations: 0.8824 MB / 0.5963 GB, free: 74.55 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/0.984, allocations: 1.337 MB / 0.5976 GB, free: 74.05 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/0.9854, allocations: 1.114 MB / 0.5987 GB, free: 74.03 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.365e-06/0.9854, allocations: 8.25 kB / 0.5987 GB, free: 74.03 MB / 442.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005315/0.9908, allocations: 3.37 MB / 0.602 GB, free: 73.74 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.9908, allocations: 9.531 kB / 0.602 GB, free: 73.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.129e-05/0.9908, allocations: 13.03 kB / 0.6021 GB, free: 73.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002544/0.9934, allocations: 1.042 MB / 0.6031 GB, free: 73.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/0.9945, allocations: 328.3 kB / 0.6034 GB, free: 73.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01596/1.01, allocations: 19.2 MB / 0.6221 GB, free: 60.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002064/1.013, allocations: 98.75 kB / 0.6222 GB, free: 60.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000197/1.013, allocations: 76.25 kB / 0.6223 GB, free: 60.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 176 * 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 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004018/1.013, allocations: 228.8 kB / 0.6225 GB, free: 60.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003987/1.014, allocations: 216.2 kB / 0.6227 GB, free: 60.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005265/1.019, allocations: 2.79 MB / 0.6255 GB, free: 60.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/1.019, allocations: 17.44 kB / 0.6255 GB, free: 60.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.801e-05/1.019, allocations: 10.62 kB / 0.6255 GB, free: 60.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-05/1.019, allocations: 8.109 kB / 0.6255 GB, free: 60.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0118/1.031, allocations: 6.008 MB / 0.6314 GB, free: 58.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/1.031, allocations: 2.5 kB / 0.6314 GB, free: 58.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000798/1.032, allocations: 187.7 kB / 0.6315 GB, free: 58.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002686/1.034, allocations: 0.92 MB / 0.6324 GB, free: 58.13 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/1.035, allocations: 34.34 kB / 0.6325 GB, free: 58.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01546/1.05, allocations: 17.1 MB / 0.6492 GB, free: 44.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/1.05, allocations: 2.156 kB / 0.6492 GB, free: 44.32 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005816/1.056, allocations: 4.127 MB / 0.6532 GB, free: 42.46 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/1.057, allocations: 496.2 kB / 0.6537 GB, free: 42.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002587/1.057, allocations: 32.62 kB / 0.6537 GB, free: 42.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/1.059, allocations: 115.3 kB / 0.6538 GB, free: 42.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003992/1.059, allocations: 149.8 kB / 0.654 GB, free: 42.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.827e-05/1.059, allocations: 43.56 kB / 0.654 GB, free: 42.08 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002025/1.061, allocations: 1.351 MB / 0.6553 GB, free: 41.53 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.061, allocations: 0 / 0.6553 GB, free: 41.53 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002724/1.064, allocations: 0.7401 MB / 0.656 GB, free: 41.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 104 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(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,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00566/1.069, allocations: 5.543 MB / 0.6615 GB, free: 38.48 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004443/1.074, allocations: 3.52 MB / 0.6649 GB, free: 36.52 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/1.074, allocations: 7.938 kB / 0.6649 GB, free: 36.52 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002291/1.076, allocations: 2.232 MB / 0.6671 GB, free: 35.06 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003043/1.079, allocations: 0.6379 MB / 0.6677 GB, free: 34.91 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009265/1.089, allocations: 5.404 MB / 0.673 GB, free: 32.78 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00174/1.09, allocations: 2.359 MB / 0.6753 GB, free: 31.78 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001522/1.092, allocations: 485.1 kB / 0.6757 GB, free: 31.73 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001061/1.093, allocations: 1.085 MB / 0.6768 GB, free: 30.84 MB / 442.7 MB Notification: Performance of SimCode: time 1.653e-06/1.093, allocations: 0 / 0.6768 GB, free: 30.84 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1101/1.203, allocations: 64.22 MB / 0.7395 GB, free: 5.148 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/1.203, allocations: 199.5 kB / 0.7397 GB, free: 4.926 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.02/5.223, allocations: 0 / 0.7397 GB, free: 4.926 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat does not exist to compare? outputFormat=mat