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.0009648/0.0009647, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.217/1.217, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.0007716/0.0007716, allocations: 93.92 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1597/0.1597, allocations: 38.06 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000279/0.000279, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2403, allocations: 56.32 MB / 480.4 MB, free: 9.562 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1196/0.36, allocations: 102.2 MB / 0.569 GB, free: 184 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001623/0.3617, allocations: 0.8799 MB / 0.5698 GB, free: 15.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03786/0.3995, allocations: 15.15 MB / 0.5846 GB, free: 15.98 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3996, allocations: 0 / 0.5846 GB, free: 15.98 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.986e-05/0.3996, allocations: 15.94 kB / 0.5846 GB, free: 15.97 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001551/0.4012, allocations: 0.7928 MB / 0.5854 GB, free: 15.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.4012, allocations: 15.95 kB / 0.5854 GB, free: 15.11 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001231/0.4014, allocations: 70.53 kB / 0.5855 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.4015, allocations: 59.3 kB / 0.5856 GB, free: 14.97 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001468/0.403, allocations: 0.724 MB / 0.5863 GB, free: 14.21 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.789e-05/0.403, allocations: 25 kB / 0.5863 GB, free: 14.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.531e-05/0.4031, allocations: 39.91 kB / 0.5863 GB, free: 14.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006591/0.4038, allocations: 456.4 kB / 0.5868 GB, free: 13.65 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.4038, allocations: 3.938 kB / 0.5868 GB, free: 13.65 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.216e-05/0.4038, allocations: 19.98 kB / 0.5868 GB, free: 13.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.4038, allocations: 12 kB / 0.5868 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004433/0.4043, allocations: 278.3 kB / 0.5871 GB, free: 13.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002069/0.4064, allocations: 1.863 MB / 0.5889 GB, free: 11.37 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004573/0.4068, allocations: 248.3 kB / 0.5891 GB, free: 11.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.891e-05/0.4069, allocations: 4.25 kB / 0.5891 GB, free: 11.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002452/0.4071, allocations: 178.1 kB / 0.5893 GB, free: 10.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 1.874e-06/0.4072, allocations: 0 / 0.5893 GB, free: 10.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.001564/0.4087, allocations: 0.9127 MB / 0.5902 GB, free: 9.926 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.734e-05/0.4088, allocations: 128.5 kB / 0.5903 GB, free: 9.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003663/0.4092, allocations: 357 kB / 0.5906 GB, free: 9.414 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.4092, allocations: 33.64 kB / 0.5907 GB, free: 9.375 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/0.4094, allocations: 271.6 kB / 0.5909 GB, free: 9.105 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.829e-05/0.4095, allocations: 90.75 kB / 0.591 GB, free: 9.016 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.551e-05/0.4095, allocations: 7.938 kB / 0.591 GB, free: 9.008 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.4096, allocations: 350.8 kB / 0.5914 GB, free: 8.656 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.4098, allocations: 83.98 kB / 0.5914 GB, free: 8.574 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.41, allocations: 212.2 kB / 0.5916 GB, free: 8.309 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001871/0.4102, allocations: 123.8 kB / 0.5918 GB, free: 8.188 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.4102, allocations: 0 / 0.5918 GB, free: 8.188 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007677/0.411, allocations: 429.4 kB / 0.5922 GB, free: 7.758 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.411, allocations: 11.95 kB / 0.5922 GB, free: 7.746 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.411, allocations: 4 kB / 0.5922 GB, free: 7.742 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004211/0.4114, allocations: 89.25 kB / 0.5923 GB, free: 7.652 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.4117, allocations: 67.91 kB / 0.5923 GB, free: 7.586 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002196/0.4139, allocations: 1.845 MB / 0.5941 GB, free: 5.609 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002522/0.4141, allocations: 23.91 kB / 0.5942 GB, free: 5.586 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.703e-05/0.4142, allocations: 15.98 kB / 0.5942 GB, free: 5.57 MB / 426.7 MB 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 () * Number of clocked 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.000208/0.4144, allocations: 197.6 kB / 0.5944 GB, free: 5.367 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.347e-05/0.4145, allocations: 43.47 kB / 0.5944 GB, free: 5.324 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005575/0.415, allocations: 294.3 kB / 0.5947 GB, free: 5.027 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.415, allocations: 0 / 0.5947 GB, free: 5.027 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4151, allocations: 4 kB / 0.5947 GB, free: 5.023 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.4151, allocations: 3.938 kB / 0.5947 GB, free: 5.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.4161, allocations: 0.7685 MB / 0.5955 GB, free: 4.191 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.4161, allocations: 7.891 kB / 0.5955 GB, free: 4.184 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002364/0.4164, allocations: 39.98 kB / 0.5955 GB, free: 4.145 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002042/0.4166, allocations: 56.78 kB / 0.5956 GB, free: 4.086 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.382e-05/0.4166, allocations: 8 kB / 0.5956 GB, free: 4.078 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.4177, allocations: 1.441 MB / 0.597 GB, free: 2.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.4177, allocations: 0 / 0.597 GB, free: 2.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006795/0.4184, allocations: 0.5198 MB / 0.5975 GB, free: 1.945 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.4186, allocations: 132.6 kB / 0.5976 GB, free: 1.797 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.936e-05/0.4186, allocations: 15.92 kB / 0.5976 GB, free: 1.781 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.4189, allocations: 11.95 kB / 0.5976 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.575e-05/0.4189, allocations: 23.97 kB / 0.5976 GB, free: 1.746 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.419, allocations: 11.98 kB / 0.5977 GB, free: 1.734 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002758/0.4192, allocations: 279.1 kB / 0.5979 GB, free: 1.465 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4193, allocations: 3.938 kB / 0.5979 GB, free: 1.461 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005001/0.4198, allocations: 119.9 kB / 0.598 GB, free: 1.344 MB / 426.7 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 () * Number of clocked 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.001768/0.4215, allocations: 1.507 MB / 0.5995 GB, free: 15.85 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007654/0.4223, allocations: 400.2 kB / 0.5999 GB, free: 15.45 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4223, allocations: 4.125 kB / 0.5999 GB, free: 15.44 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003731/0.4227, allocations: 238.5 kB / 0.6001 GB, free: 15.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005441/0.4233, allocations: 117.4 kB / 0.6002 GB, free: 15.08 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004767/0.428, allocations: 5.443 MB / 0.6056 GB, free: 9.496 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.4284, allocations: 0.8623 MB / 0.6064 GB, free: 8.605 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002509/0.4287, allocations: 63.34 kB / 0.6065 GB, free: 8.539 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/0.4289, allocations: 163.3 kB / 0.6066 GB, free: 8.379 MB / 442.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4289, allocations: 0 / 0.6066 GB, free: 8.379 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02549/0.4544, allocations: 10.37 MB / 0.6167 GB, free: 14 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002193/0.4547, allocations: 257.4 kB / 0.617 GB, free: 13.66 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.99/2.445, allocations: 3.938 kB / 0.617 GB, free: 13.66 MB / 458.7 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