Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001066/0.001066, allocations: 182.7 kB / 8.135 MB, free: 2.184 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.128/1.128, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0009028/0.0009028, allocations: 100.6 kB / 261.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1672/0.1672, allocations: 37.97 MB / 347.7 MB, free: 7.52 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1906/0.3579, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09751/0.4554, allocations: 56.31 MB / 466.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2971/0.7526, allocations: 99.5 MB / 0.5526 GB, free: 10.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.7529, allocations: 91.94 kB / 0.5527 GB, free: 10.89 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.03535/0.7883, allocations: 13.3 MB / 0.5657 GB, free: 13.4 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.7883, allocations: 8 kB / 0.5657 GB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.7885, allocations: 59.28 kB / 0.5658 GB, free: 13.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.79, allocations: 0.6709 MB / 0.5664 GB, free: 12.63 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.762e-05/0.7901, allocations: 47.45 kB / 0.5665 GB, free: 12.58 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.857e-05/0.7902, allocations: 28 kB / 0.5665 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005355/0.7908, allocations: 277.9 kB / 0.5668 GB, free: 12.28 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006815/0.7915, allocations: 444.2 kB / 0.5672 GB, free: 11.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.7915, allocations: 3.938 kB / 0.5672 GB, free: 11.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.735e-05/0.7915, allocations: 0 / 0.5672 GB, free: 11.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.7916, allocations: 12 kB / 0.5672 GB, free: 11.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002403/0.794, allocations: 1.904 MB / 0.5691 GB, free: 9.773 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/0.7942, allocations: 158.8 kB / 0.5692 GB, free: 9.594 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.7944, allocations: 91.97 kB / 0.5693 GB, free: 9.496 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.7944, allocations: 3.938 kB / 0.5693 GB, free: 9.492 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.7944, allocations: 34.88 kB / 0.5694 GB, free: 9.449 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 1.824e-06/0.7944, allocations: 0 / 0.5694 GB, free: 9.449 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.001233/0.7957, allocations: 0.6994 MB / 0.57 GB, free: 8.688 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.7957, allocations: 110.8 kB / 0.5701 GB, free: 8.555 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/0.796, allocations: 243.5 kB / 0.5704 GB, free: 8.309 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.796, allocations: 29.69 kB / 0.5704 GB, free: 8.273 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.7962, allocations: 239.4 kB / 0.5706 GB, free: 8.035 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.498e-05/0.7962, allocations: 70.91 kB / 0.5707 GB, free: 7.965 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.209e-05/0.7962, allocations: 64 / 0.5707 GB, free: 7.965 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.7964, allocations: 350.8 kB / 0.571 GB, free: 7.613 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.7965, allocations: 60 kB / 0.5711 GB, free: 7.555 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.7967, allocations: 193.2 kB / 0.5713 GB, free: 7.305 MB / 410.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.dcm_pm.rotor.w = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.0006851/0.7974, allocations: 281.2 kB / 0.5715 GB, free: 7.016 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.7974, allocations: 0 / 0.5715 GB, free: 7.016 MB / 410.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006741/0.7981, allocations: 348.6 kB / 0.5719 GB, free: 6.668 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.7981, allocations: 8.594 kB / 0.5719 GB, free: 6.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.7981, allocations: 8 kB / 0.5719 GB, free: 6.652 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003578/0.7985, allocations: 76.8 kB / 0.572 GB, free: 6.574 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/0.7988, allocations: 67.91 kB / 0.572 GB, free: 6.508 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.8006, allocations: 1.701 MB / 0.5737 GB, free: 4.688 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.8009, allocations: 11.91 kB / 0.5737 GB, free: 4.676 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.844e-05/0.8009, allocations: 19.98 kB / 0.5737 GB, free: 4.656 MB / 410.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.dcm_pm.rotor.w = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (34): * Single equations (assignments): 33 * 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 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.8011, allocations: 117 kB / 0.5738 GB, free: 4.535 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.36e-05/0.8012, allocations: 31.62 kB / 0.5739 GB, free: 4.504 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.465e-05/0.8012, allocations: 30.89 kB / 0.5739 GB, free: 4.477 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.8013, allocations: 4 kB / 0.5739 GB, free: 4.473 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.8013, allocations: 4.062 kB / 0.5739 GB, free: 4.469 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.8013, allocations: 4 kB / 0.5739 GB, free: 4.465 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.8023, allocations: 0.6872 MB / 0.5746 GB, free: 3.715 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.8023, allocations: 4 kB / 0.5746 GB, free: 3.711 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002861/0.8026, allocations: 47.91 kB / 0.5746 GB, free: 3.664 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.569e-05/0.8027, allocations: 16.86 kB / 0.5746 GB, free: 3.645 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.8027, allocations: 8 kB / 0.5746 GB, free: 3.637 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008703/0.8036, allocations: 1.228 MB / 0.5758 GB, free: 2.289 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.8036, allocations: 7.922 kB / 0.5759 GB, free: 2.281 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000514/0.8042, allocations: 498.2 kB / 0.5763 GB, free: 1.75 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007263/0.8049, allocations: 0.938 MB / 0.5772 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.805, allocations: 116.7 kB / 0.5774 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.827e-05/0.8051, allocations: 4 kB / 0.5774 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.8053, allocations: 11.89 kB / 0.5774 GB, free: 0.6172 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.591e-05/0.8054, allocations: 15.98 kB / 0.5774 GB, free: 0.6016 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.8054, allocations: 8 kB / 0.5774 GB, free: 0.5938 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001889/0.8056, allocations: 187.1 kB / 0.5776 GB, free: 420 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.001099/0.8067, allocations: 80 kB / 0.5776 GB, free: 340 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.rotor.phi,dcm_pm.motor.i,loadInertia.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002273/0.8069, allocations: 127.1 kB / 0.5778 GB, free: 204 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006131/0.8076, allocations: 322.5 kB / 0.5781 GB, free: 15.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.8076, allocations: 0 / 0.5781 GB, free: 15.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002497/0.8078, allocations: 186 kB / 0.5783 GB, free: 15.68 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005095/0.8084, allocations: 74.05 kB / 0.5783 GB, free: 15.61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.8098, allocations: 0.6687 MB / 0.579 GB, free: 14.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004912/0.8103, allocations: 0.8772 MB / 0.5798 GB, free: 14 MB / 426.7 MB Notification: Performance of SimCode: time 3e-07/0.8103, allocations: 0 / 0.5798 GB, free: 14 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat does not exist to compare? outputFormat=mat