Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.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.SMEE_LoadDump,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump",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.001042/0.001042, allocations: 175.5 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.38/1.38, allocations: 221.3 MB / 235.5 MB, free: 2.965 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.0008185/0.0008185, allocations: 84.69 kB / 286.5 MB, free: 256 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.573e-05/2.582e-05, allocations: 4 kB / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09662/0.09666, allocations: 50.4 MB / 394.3 MB, free: 1.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3316/0.4284, allocations: 115.9 MB / 0.4983 GB, free: 3.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.4287, allocations: 87.94 kB / 0.4984 GB, free: 3.434 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3957/0.8244, allocations: 62.76 MB / 0.5597 GB, free: 101.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.8245, allocations: 0 / 0.5597 GB, free: 101.6 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002486/0.8247, allocations: 77.91 kB / 0.5598 GB, free: 101.6 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: 731 * Number of variables: 731 Notification: Performance of Generate backend data structure: time 0.00727/0.832, allocations: 3.021 MB / 0.5627 GB, free: 100.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.8321, allocations: 9.281 kB / 0.5627 GB, free: 100.3 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00107/0.8331, allocations: 451.1 kB / 0.5632 GB, free: 100.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001868/0.835, allocations: 484 kB / 0.5636 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004288/0.8393, allocations: 2.074 MB / 0.5656 GB, free: 99.6 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002221/0.8396, allocations: 383.5 kB / 0.566 GB, free: 99.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004738/0.84, allocations: 281.9 kB / 0.5663 GB, free: 99.4 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00589/0.8459, allocations: 3.596 MB / 0.5698 GB, free: 98.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.422e-05/0.846, allocations: 9.625 kB / 0.5698 GB, free: 98.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002819/0.8463, allocations: 123.5 kB / 0.5699 GB, free: 98.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001203/0.8465, allocations: 113.9 kB / 0.57 GB, free: 98.94 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004782/0.8512, allocations: 2.827 MB / 0.5728 GB, free: 98.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01576/0.867, allocations: 11.97 MB / 0.5845 GB, free: 93.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002408/0.8695, allocations: 2.781 MB / 0.5872 GB, free: 91.67 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001285/0.8708, allocations: 1.111 MB / 0.5883 GB, free: 91.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002863/0.8711, allocations: 138.1 kB / 0.5884 GB, free: 91.16 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001338/0.8724, allocations: 1.131 MB / 0.5895 GB, free: 90.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=156): time 3.226e-06/0.8724, allocations: 0 / 0.5895 GB, free: 90.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=180): time 0.01598/0.8884, allocations: 8.012 MB / 0.5973 GB, free: 87.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.226e-05/0.8885, allocations: 313.9 kB / 0.5976 GB, free: 87.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002512/0.891, allocations: 1.829 MB / 0.5994 GB, free: 86.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001891/0.8912, allocations: 60.27 kB / 0.5995 GB, free: 86.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008812/0.8921, allocations: 1.372 MB / 0.6008 GB, free: 85.72 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003863/0.8925, allocations: 0.6044 MB / 0.6014 GB, free: 85.26 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.8926, allocations: 42.38 kB / 0.6014 GB, free: 85.23 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.8928, allocations: 385.1 kB / 0.6018 GB, free: 84.89 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.894, allocations: 1.004 MB / 0.6028 GB, free: 84.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001479/0.8955, allocations: 1.542 MB / 0.6043 GB, free: 83.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001484/0.897, allocations: 1.213 MB / 0.6055 GB, free: 83.04 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.897, allocations: 3.344 kB / 0.6055 GB, free: 83.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.004902/0.9019, allocations: 3.585 MB / 0.609 GB, free: 81.65 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008943/0.9028, allocations: 5.405 MB / 0.6143 GB, free: 75.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.917e-05/0.9029, allocations: 13.94 kB / 0.6143 GB, free: 75.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002734/0.9056, allocations: 1.189 MB / 0.6154 GB, free: 75.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00149/0.9071, allocations: 381.3 kB / 0.6158 GB, free: 75.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01251/0.9196, allocations: 14.57 MB / 0.63 GB, free: 64.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002549/0.9222, allocations: 175.2 kB / 0.6302 GB, free: 64.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002837/0.9225, allocations: 82.77 kB / 0.6303 GB, free: 64.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/0.9225, allocations: 0 / 0.6303 GB, free: 64.38 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004753/0.9273, allocations: 3.348 MB / 0.6335 GB, free: 61.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/0.9274, allocations: 15.75 kB / 0.6336 GB, free: 61.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002453/0.9298, allocations: 1.188 MB / 0.6347 GB, free: 60.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.9311, allocations: 373.7 kB / 0.6351 GB, free: 60.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01201/0.9431, allocations: 14.54 MB / 0.6493 GB, free: 46.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002417/0.9455, allocations: 167.5 kB / 0.6494 GB, free: 46.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003042/0.9459, allocations: 83.61 kB / 0.6495 GB, free: 45.99 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulseStart,loadControl.pulseStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch,voltageController.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 205 * 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: 6 * 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: 3 {(4,100.0%) 14,(3,100.0%) 24,(2,100.0%) 4} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005151/0.9464, allocations: 242.2 kB / 0.6497 GB, free: 45.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000552/0.9469, allocations: 244.5 kB / 0.65 GB, free: 45.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005635/0.9526, allocations: 3.398 MB / 0.6533 GB, free: 42.69 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.9526, allocations: 20 kB / 0.6533 GB, free: 42.67 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.9526, allocations: 0 / 0.6533 GB, free: 42.67 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/0.9527, allocations: 13.33 kB / 0.6533 GB, free: 42.67 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/0.9632, allocations: 6.68 MB / 0.6599 GB, free: 37.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.9632, allocations: 10.89 kB / 0.6599 GB, free: 37.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000816/0.9641, allocations: 199 kB / 0.6601 GB, free: 37.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003149/0.9672, allocations: 1.399 MB / 0.6614 GB, free: 35.97 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001492/0.9674, allocations: 46.89 kB / 0.6615 GB, free: 35.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01448/0.9819, allocations: 14.69 MB / 0.6758 GB, free: 20.92 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.9819, allocations: 3.938 kB / 0.6758 GB, free: 20.92 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006822/0.9887, allocations: 4.883 MB / 0.6806 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001512/0.9903, allocations: 0.5293 MB / 0.6811 GB, free: 15.35 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007002/0.991, allocations: 54.61 kB / 0.6811 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001754/0.9928, allocations: 131.9 kB / 0.6813 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005252/0.9933, allocations: 238 kB / 0.6815 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001416/0.9935, allocations: 51.98 kB / 0.6815 GB, free: 14.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002325/0.9958, allocations: 1.404 MB / 0.6829 GB, free: 13.45 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9958, allocations: 0 / 0.6829 GB, free: 13.45 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005066/1.001, allocations: 1.262 MB / 0.6842 GB, free: 12.19 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 8 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],speed.phi,speed.w,voltageController.I.y) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulseStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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: 1 {(2,100.0%) 4} * Non-linear torn systems: 4 {7 52,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007231/1.008, allocations: 6.322 MB / 0.6903 GB, free: 5.797 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009041/1.017, allocations: 6.272 MB / 0.6964 GB, free: 15.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/1.017, allocations: 0 / 0.6964 GB, free: 15.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004015/1.021, allocations: 2.419 MB / 0.6988 GB, free: 12.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00318/1.025, allocations: 0.5193 MB / 0.6993 GB, free: 12.37 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01568/1.04, allocations: 5.97 MB / 0.7051 GB, free: 6.375 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002953/1.043, allocations: 2.323 MB / 0.7074 GB, free: 4.023 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003661/1.047, allocations: 0.9049 MB / 0.7083 GB, free: 3.137 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00173/1.049, allocations: 1.112 MB / 0.7094 GB, free: 2.023 MB / 442.7 MB Notification: Performance of SimCode: time 3.026e-06/1.049, allocations: 4 kB / 0.7094 GB, free: 2.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.321/1.37, allocations: 74.17 MB / 0.7818 GB, free: 77.66 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001446/1.37, allocations: 224.4 kB / 0.782 GB, free: 77.43 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.529/5.899, allocations: 0 / 0.782 GB, free: 77.43 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_LoadDump.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat