Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.DCmotor_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.001091/0.001091, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.577/1.577, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008969/0.0008969, allocations: 87.48 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1822/0.1822, allocations: 37.99 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.609e-05/2.65e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1191, allocations: 56.32 MB / 467 MB, free: 6.48 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.443/0.5622, allocations: 101.5 MB / 0.5551 GB, free: 9.332 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001824/0.5641, allocations: 0.5751 MB / 0.5557 GB, free: 8.758 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0408/0.6049, allocations: 14.98 MB / 0.5703 GB, free: 9.633 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.605, allocations: 0 / 0.5703 GB, free: 9.633 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.741e-05/0.605, allocations: 12 kB / 0.5703 GB, free: 9.621 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001367/0.6064, allocations: 0.7339 MB / 0.5711 GB, free: 8.836 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.6064, allocations: 15.95 kB / 0.5711 GB, free: 8.82 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.6066, allocations: 59.3 kB / 0.5711 GB, free: 8.762 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001624/0.6082, allocations: 0.6989 MB / 0.5718 GB, free: 8.023 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.6082, allocations: 12 kB / 0.5718 GB, free: 8.012 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.2e-05/0.6083, allocations: 27.91 kB / 0.5719 GB, free: 7.984 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004457/0.6088, allocations: 225.5 kB / 0.5721 GB, free: 7.762 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006353/0.6094, allocations: 402.7 kB / 0.5724 GB, free: 7.324 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.6094, allocations: 4 kB / 0.5725 GB, free: 7.32 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.6095, allocations: 0 / 0.5725 GB, free: 7.32 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.6095, allocations: 11.95 kB / 0.5725 GB, free: 7.309 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002327/0.6118, allocations: 1.796 MB / 0.5742 GB, free: 5.41 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004475/0.6123, allocations: 228.2 kB / 0.5744 GB, free: 5.16 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.6124, allocations: 74.94 kB / 0.5745 GB, free: 5.078 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.6125, allocations: 4.188 kB / 0.5745 GB, free: 5.074 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.6128, allocations: 166.2 kB / 0.5747 GB, free: 4.891 MB / 411.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.6128, allocations: 0 / 0.5747 GB, free: 4.891 MB / 411.1 MB Notification: Performance of matching and sorting (n=26): time 0.001496/0.6143, allocations: 0.8021 MB / 0.5755 GB, free: 4.027 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.972e-05/0.6144, allocations: 132.5 kB / 0.5756 GB, free: 3.867 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003752/0.6148, allocations: 313.3 kB / 0.5759 GB, free: 3.559 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.6148, allocations: 25.7 kB / 0.5759 GB, free: 3.527 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002153/0.615, allocations: 275.8 kB / 0.5762 GB, free: 3.25 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.661e-05/0.6151, allocations: 82.81 kB / 0.5762 GB, free: 3.168 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.455e-05/0.6151, allocations: 0 / 0.5762 GB, free: 3.168 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.6153, allocations: 346.8 kB / 0.5766 GB, free: 2.82 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.6154, allocations: 71.98 kB / 0.5766 GB, free: 2.75 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/0.6156, allocations: 192.3 kB / 0.5768 GB, free: 2.504 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.6158, allocations: 107.9 kB / 0.5769 GB, free: 2.398 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.6158, allocations: 0 / 0.5769 GB, free: 2.398 MB / 411.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000741/0.6166, allocations: 389.5 kB / 0.5773 GB, free: 2.008 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.6166, allocations: 8 kB / 0.5773 GB, free: 2 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.6166, allocations: 4 kB / 0.5773 GB, free: 1.996 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003861/0.617, allocations: 88.73 kB / 0.5774 GB, free: 1.906 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002306/0.6173, allocations: 68.19 kB / 0.5775 GB, free: 1.84 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/0.6192, allocations: 1.76 MB / 0.5792 GB, free: 15.97 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002398/0.6195, allocations: 11.94 kB / 0.5792 GB, free: 15.96 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.6195, allocations: 23.98 kB / 0.5792 GB, free: 15.93 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcm_ser.motor.w_el:VARIABLE(unit = "rad/s" ) "rotor angular velocity el" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001502/0.6197, allocations: 115.1 kB / 0.5793 GB, free: 15.82 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005457/0.6202, allocations: 261.6 kB / 0.5796 GB, free: 15.55 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.402e-05/0.6203, allocations: 43.47 kB / 0.5796 GB, free: 15.51 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005191/0.6208, allocations: 269.5 kB / 0.5799 GB, free: 15.23 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/0.6209, allocations: 12.05 kB / 0.5799 GB, free: 15.22 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.6209, allocations: 0 / 0.5799 GB, free: 15.22 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.6209, allocations: 3.984 kB / 0.5799 GB, free: 15.21 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009435/0.6218, allocations: 0.6832 MB / 0.5806 GB, free: 14.48 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.6218, allocations: 4 kB / 0.5806 GB, free: 14.48 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002306/0.6221, allocations: 47.91 kB / 0.5806 GB, free: 14.43 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002003/0.6223, allocations: 52.81 kB / 0.5807 GB, free: 14.38 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.6223, allocations: 0 / 0.5807 GB, free: 14.38 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.6235, allocations: 1.386 MB / 0.582 GB, free: 12.88 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.6235, allocations: 4.031 kB / 0.582 GB, free: 12.87 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006822/0.6242, allocations: 489.1 kB / 0.5825 GB, free: 12.36 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/0.6243, allocations: 136.6 kB / 0.5826 GB, free: 12.21 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.187e-05/0.6244, allocations: 11.94 kB / 0.5826 GB, free: 12.2 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002077/0.6246, allocations: 11.94 kB / 0.5826 GB, free: 12.18 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.094e-05/0.6247, allocations: 19.97 kB / 0.5827 GB, free: 12.16 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.6247, allocations: 11.98 kB / 0.5827 GB, free: 12.15 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002611/0.625, allocations: 239 kB / 0.5829 GB, free: 11.92 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.625, allocations: 0 / 0.5829 GB, free: 11.92 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0005906/0.6256, allocations: 108 kB / 0.583 GB, free: 11.82 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00174/0.6273, allocations: 1.433 MB / 0.5844 GB, free: 10.36 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0007468/0.6281, allocations: 370.2 kB / 0.5847 GB, free: 9.992 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.6281, allocations: 4.125 kB / 0.5848 GB, free: 9.988 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000329/0.6284, allocations: 221.7 kB / 0.585 GB, free: 9.762 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005606/0.629, allocations: 105.8 kB / 0.5851 GB, free: 9.66 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.6308, allocations: 0.8997 MB / 0.5859 GB, free: 8.719 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.6313, allocations: 0.8773 MB / 0.5868 GB, free: 7.816 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.000255/0.6315, allocations: 67.22 kB / 0.5869 GB, free: 7.75 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000217/0.6318, allocations: 151.3 kB / 0.587 GB, free: 7.602 MB / 427.1 MB Notification: Performance of SimCode: time 4.41e-07/0.6318, allocations: 0 / 0.587 GB, free: 7.602 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03215/0.6639, allocations: 8.798 MB / 0.5956 GB, free: 14.79 MB / 443.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002041/0.6642, allocations: 174 kB / 0.5958 GB, free: 14.6 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.249/2.913, allocations: 0 / 0.5958 GB, free: 14.6 MB / 443.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat does not exist to compare? outputFormat=mat