Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001079/0.001079, 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 3.2.3+maint.om/package.mo): time 1.716/1.716, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008519/0.000852, allocations: 82.72 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1659/0.1659, allocations: 37.98 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.394e-05/3.396e-05, allocations: 0 / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1411, allocations: 56.33 MB / 474.2 MB, free: 4.707 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.49/0.6312, allocations: 112.7 MB / 0.5731 GB, free: 6.117 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.6315, allocations: 98.62 kB / 0.5732 GB, free: 6.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06868/0.7002, allocations: 26.01 MB / 0.5986 GB, free: 15.85 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.7002, allocations: 0 / 0.5986 GB, free: 15.85 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.424e-05/0.7003, allocations: 24 kB / 0.5986 GB, free: 15.83 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.001732/0.702, allocations: 0.9644 MB / 0.5996 GB, free: 14.87 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.7021, allocations: 8.031 kB / 0.5996 GB, free: 14.86 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000138/0.7022, allocations: 117.2 kB / 0.5997 GB, free: 14.78 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003904/0.7026, allocations: 102.9 kB / 0.5998 GB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.7043, allocations: 0.8483 MB / 0.6006 GB, free: 13.98 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.7044, allocations: 76.77 kB / 0.6007 GB, free: 13.92 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.7045, allocations: 71.53 kB / 0.6008 GB, free: 13.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.7059, allocations: 0.9427 MB / 0.6017 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/0.706, allocations: 8 kB / 0.6017 GB, free: 13.15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-05/0.706, allocations: 32.25 kB / 0.6017 GB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-05/0.7061, allocations: 56.03 kB / 0.6018 GB, free: 13.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.7072, allocations: 0.7407 MB / 0.6025 GB, free: 12.61 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004869/0.7121, allocations: 3.843 MB / 0.6063 GB, free: 9.246 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006416/0.7128, allocations: 422.8 kB / 0.6067 GB, free: 8.934 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004219/0.7132, allocations: 263.8 kB / 0.6069 GB, free: 8.746 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.877e-05/0.7132, allocations: 19.77 kB / 0.6069 GB, free: 8.727 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.7133, allocations: 45.94 kB / 0.607 GB, free: 8.676 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 2.515e-06/0.7133, allocations: 0 / 0.607 GB, free: 8.676 MB / 410.7 MB Notification: Performance of matching and sorting (n=55): time 0.009237/0.7225, allocations: 3.577 MB / 0.6105 GB, free: 5.617 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.339e-05/0.7226, allocations: 115.3 kB / 0.6106 GB, free: 5.477 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005854/0.7232, allocations: 444.7 kB / 0.611 GB, free: 5.129 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.247e-05/0.7233, allocations: 38.45 kB / 0.611 GB, free: 5.094 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002512/0.7236, allocations: 400.2 kB / 0.6114 GB, free: 4.789 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001523/0.7237, allocations: 190.3 kB / 0.6116 GB, free: 4.625 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.374e-05/0.7238, allocations: 14.38 kB / 0.6116 GB, free: 4.621 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.7239, allocations: 375.2 kB / 0.612 GB, free: 4.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003802/0.7243, allocations: 271.5 kB / 0.6122 GB, free: 4.105 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005158/0.7248, allocations: 0.4884 MB / 0.6127 GB, free: 3.637 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004976/0.7253, allocations: 369 kB / 0.6131 GB, free: 3.398 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.7254, allocations: 4 kB / 0.6131 GB, free: 3.395 MB / 410.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003125/0.7285, allocations: 1.561 MB / 0.6146 GB, free: 2.098 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.7285, allocations: 12 kB / 0.6146 GB, free: 2.086 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.7286, allocations: 8 kB / 0.6146 GB, free: 2.078 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001619/0.7302, allocations: 494.9 kB / 0.6151 GB, free: 1.684 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004067/0.7306, allocations: 111.7 kB / 0.6152 GB, free: 1.578 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01071/0.7413, allocations: 9.97 MB / 0.6249 GB, free: 7.352 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007714/0.7421, allocations: 31.98 kB / 0.625 GB, free: 7.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.726e-05/0.7422, allocations: 32.06 kB / 0.625 GB, free: 7.289 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 54 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(3,88.9%) 8,(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002032/0.7424, allocations: 152.7 kB / 0.6251 GB, free: 7.133 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.7426, allocations: 63.25 kB / 0.6252 GB, free: 7.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003095/0.7457, allocations: 1.429 MB / 0.6266 GB, free: 5.566 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.7457, allocations: 4 kB / 0.6266 GB, free: 5.562 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.7457, allocations: 4 kB / 0.6266 GB, free: 5.559 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.7457, allocations: 7.984 kB / 0.6266 GB, free: 5.551 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004305/0.75, allocations: 2.339 MB / 0.6289 GB, free: 3.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.75, allocations: 4 kB / 0.6289 GB, free: 3.066 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003014/0.7504, allocations: 59.89 kB / 0.6289 GB, free: 3.008 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001471/0.7518, allocations: 484 kB / 0.6294 GB, free: 2.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.7519, allocations: 12 kB / 0.6294 GB, free: 2.508 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009838/0.7617, allocations: 9.7 MB / 0.6389 GB, free: 8.133 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.7618, allocations: 7.875 kB / 0.6389 GB, free: 8.125 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003638/0.7654, allocations: 2.026 MB / 0.6409 GB, free: 5.965 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003831/0.7659, allocations: 192.3 kB / 0.6411 GB, free: 5.758 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.357e-05/0.7659, allocations: 12 kB / 0.6411 GB, free: 5.746 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003589/0.7663, allocations: 19.98 kB / 0.6411 GB, free: 5.727 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.7665, allocations: 60.55 kB / 0.6411 GB, free: 5.668 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.925e-05/0.7666, allocations: 16 kB / 0.6412 GB, free: 5.652 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004676/0.767, allocations: 345.5 kB / 0.6415 GB, free: 5.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.767, allocations: 0 / 0.6415 GB, free: 5.32 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001104/0.7682, allocations: 244 kB / 0.6417 GB, free: 5.082 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 4 {(3,88.9%) 8,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.004068/0.7722, allocations: 2.98 MB / 0.6446 GB, free: 1.973 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002408/0.7747, allocations: 1.442 MB / 0.646 GB, free: 472 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.7747, allocations: 0 / 0.646 GB, free: 472 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001711/0.7764, allocations: 1.102 MB / 0.6471 GB, free: 15.29 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009144/0.7773, allocations: 162 kB / 0.6473 GB, free: 15.14 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002725/0.7801, allocations: 1.492 MB / 0.6487 GB, free: 13.59 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006776/0.7808, allocations: 1.072 MB / 0.6498 GB, free: 12.48 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003627/0.7811, allocations: 101.7 kB / 0.6499 GB, free: 12.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003009/0.7814, allocations: 251.4 kB / 0.6501 GB, free: 12.14 MB / 458.7 MB Notification: Performance of SimCode: time 1.172e-06/0.7814, allocations: 0 / 0.6501 GB, free: 12.14 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0399/0.8213, allocations: 20.42 MB / 0.6701 GB, free: 7.727 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/0.8216, allocations: 201.3 kB / 0.6703 GB, free: 7.492 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.601/3.422, allocations: 4 kB / 0.6703 GB, free: 7.488 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat does not exist to compare? outputFormat=mat