Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 221.3 MB / 235.5 MB, free: 2.891 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008154/0.0008151, allocations: 87.8 kB / 286.5 MB, free: 172 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.173e-05/3.197e-05, allocations: 0 / 343.9 MB, free: 4.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1315, allocations: 50.43 MB / 394.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3434/0.475, allocations: 105.1 MB / 499.5 MB, free: 14.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.4752, allocations: 83.95 kB / 499.6 MB, free: 14.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1041/0.5793, allocations: 39.51 MB / 0.5265 GB, free: 6.418 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5794, allocations: 0 / 0.5265 GB, free: 6.418 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001133/0.5795, allocations: 47.92 kB / 0.5265 GB, free: 6.371 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.003084/0.5826, allocations: 1.752 MB / 0.5282 GB, free: 4.566 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.5826, allocations: 12.03 kB / 0.5282 GB, free: 4.555 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003038/0.5829, allocations: 228.1 kB / 0.5284 GB, free: 4.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006124/0.5836, allocations: 237.4 kB / 0.5287 GB, free: 4.086 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002236/0.5858, allocations: 1.277 MB / 0.5299 GB, free: 2.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.533e-05/0.5859, allocations: 115.1 kB / 0.53 GB, free: 2.637 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002387/0.5862, allocations: 156 kB / 0.5302 GB, free: 2.484 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003168/0.5893, allocations: 1.947 MB / 0.5321 GB, free: 464 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.983e-05/0.5894, allocations: 11.89 kB / 0.5321 GB, free: 452 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001474/0.5896, allocations: 60 kB / 0.5321 GB, free: 392 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.487e-05/0.5896, allocations: 74.92 kB / 0.5322 GB, free: 316 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002489/0.5921, allocations: 1.534 MB / 0.5337 GB, free: 14.77 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009543/0.6017, allocations: 6.87 MB / 0.5404 GB, free: 7.594 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007453/0.6025, allocations: 489.5 kB / 0.5409 GB, free: 7.109 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004038/0.6029, allocations: 286.1 kB / 0.5412 GB, free: 6.828 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002677/0.6056, allocations: 1.466 MB / 0.5426 GB, free: 5.316 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/0.6056, allocations: 34.56 kB / 0.5426 GB, free: 5.273 MB / 426.7 MB Notification: Performance of pre-optimization done (n=38): time 2.865e-06/0.6056, allocations: 4 kB / 0.5426 GB, free: 5.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.005908/0.6116, allocations: 2.818 MB / 0.5454 GB, free: 2.383 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002569/0.6142, allocations: 2.15 MB / 0.5475 GB, free: 64 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2273/0.8414, allocations: 1.373 MB / 0.5488 GB, free: 109.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001463/0.8416, allocations: 35.17 kB / 0.5489 GB, free: 109.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006159/0.8423, allocations: 1.029 MB / 0.5499 GB, free: 109.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/0.8424, allocations: 212.1 kB / 0.5501 GB, free: 109.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.653e-05/0.8425, allocations: 32.5 kB / 0.5501 GB, free: 109.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.916e-05/0.8426, allocations: 365.1 kB / 0.5504 GB, free: 109.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007294/0.8434, allocations: 487.5 kB / 0.5509 GB, free: 109.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.8445, allocations: 1.397 MB / 0.5523 GB, free: 108 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.8455, allocations: 0.7657 MB / 0.553 GB, free: 108 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-05/0.8455, allocations: 11.41 kB / 0.553 GB, free: 108 MB / 426.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003085/0.8486, allocations: 2.056 MB / 0.555 GB, free: 107.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.412e-05/0.8487, allocations: 21.78 kB / 0.5551 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.999e-05/0.8487, allocations: 33.52 kB / 0.5551 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005186/0.8492, allocations: 233.6 kB / 0.5553 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.8503, allocations: 377.1 kB / 0.5557 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/0.8517, allocations: 1.745 MB / 0.5574 GB, free: 106.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/0.853, allocations: 130.3 kB / 0.5575 GB, free: 106.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.8531, allocations: 90.48 kB / 0.5576 GB, free: 106.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002166/0.8533, allocations: 220 kB / 0.5578 GB, free: 106.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001771/0.8535, allocations: 143.8 kB / 0.5579 GB, free: 106.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001811/0.8553, allocations: 1.048 MB / 0.559 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.8554, allocations: 7.344 kB / 0.559 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.8554, allocations: 1.312 kB / 0.559 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.617e-06/0.8554, allocations: 3.797 kB / 0.559 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005451/0.8608, allocations: 3.09 MB / 0.562 GB, free: 105.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.8609, allocations: 4.125 kB / 0.562 GB, free: 105.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004258/0.8613, allocations: 94.36 kB / 0.5621 GB, free: 105.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006895/0.862, allocations: 228.6 kB / 0.5623 GB, free: 105.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.379e-05/0.8621, allocations: 15.08 kB / 0.5623 GB, free: 105.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003233/0.8653, allocations: 3.724 MB / 0.566 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001678/0.867, allocations: 1.998 MB / 0.5679 GB, free: 101.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002527/0.8696, allocations: 1.797 MB / 0.5697 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006233/0.8702, allocations: 298.3 kB / 0.5699 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001668/0.8704, allocations: 20.28 kB / 0.57 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006425/0.871, allocations: 47.36 kB / 0.57 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.8712, allocations: 51.66 kB / 0.5701 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.207e-05/0.8712, allocations: 20.62 kB / 0.5701 GB, free: 100.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001759/0.873, allocations: 1.013 MB / 0.5711 GB, free: 100.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.873, allocations: 0 / 0.5711 GB, free: 100.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00193/0.8749, allocations: 411.1 kB / 0.5715 GB, free: 100.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 46 * 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: 2 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002893/0.8778, allocations: 3.471 MB / 0.5749 GB, free: 98.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002611/0.8805, allocations: 1.526 MB / 0.5763 GB, free: 97.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.8805, allocations: 0 / 0.5763 GB, free: 97.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.8816, allocations: 0.793 MB / 0.5771 GB, free: 97.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.8832, allocations: 383.1 kB / 0.5775 GB, free: 97.09 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004246/0.8874, allocations: 2.806 MB / 0.5802 GB, free: 95.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008096/0.8883, allocations: 1.49 MB / 0.5817 GB, free: 94.99 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009576/0.8892, allocations: 356.6 kB / 0.582 GB, free: 94.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006254/0.8899, allocations: 0.6185 MB / 0.5826 GB, free: 94.46 MB / 426.7 MB Notification: Performance of SimCode: time 8.01e-07/0.8899, allocations: 0 / 0.5826 GB, free: 94.46 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05236/0.9422, allocations: 37.28 MB / 0.619 GB, free: 80.82 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002264/0.9425, allocations: 214.4 kB / 0.6192 GB, free: 80.59 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.888/3.831, allocations: 3.828 kB / 0.6192 GB, free: 80.59 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat does not exist to compare? outputFormat=mat