Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",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.001885/0.001885, allocations: 187.6 kB / 8.136 MB, free: 2.133 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.367/1.367, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.0009924/0.0009924, allocations: 89.45 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1737/0.1737, allocations: 37.96 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1897/0.3635, allocations: 62.45 MB / 410.1 MB, free: 46.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0909/0.4544, allocations: 56.3 MB / 466.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3006/0.7551, allocations: 102 MB / 0.5551 GB, free: 8.621 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.01093/0.7661, allocations: 2.163 MB / 0.5572 GB, free: 6.477 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.05659/0.8227, allocations: 17.06 MB / 0.5738 GB, free: 5.172 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.8228, allocations: 8 kB / 0.5738 GB, free: 5.164 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.8229, allocations: 63.25 kB / 0.5739 GB, free: 5.102 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001634/0.8246, allocations: 0.7613 MB / 0.5746 GB, free: 4.301 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.8246, allocations: 12 kB / 0.5746 GB, free: 4.289 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.859e-05/0.8247, allocations: 28 kB / 0.5747 GB, free: 4.262 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000526/0.8252, allocations: 293.9 kB / 0.575 GB, free: 3.977 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007087/0.8259, allocations: 461.1 kB / 0.5754 GB, free: 3.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.568e-05/0.826, allocations: 7.844 kB / 0.5754 GB, free: 3.473 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.748e-05/0.826, allocations: 0 / 0.5754 GB, free: 3.473 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.826, allocations: 15.98 kB / 0.5754 GB, free: 3.457 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002401/0.8284, allocations: 1.983 MB / 0.5774 GB, free: 1.371 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002527/0.8287, allocations: 170.9 kB / 0.5775 GB, free: 1.18 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.8288, allocations: 70.98 kB / 0.5776 GB, free: 1.102 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.548e-05/0.8289, allocations: 11.89 kB / 0.5776 GB, free: 1.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001988/0.8291, allocations: 148 kB / 0.5777 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 1.473e-06/0.8291, allocations: 0 / 0.5777 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001424/0.8305, allocations: 0.8051 MB / 0.5785 GB, free: 64 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.836e-05/0.8306, allocations: 132.6 kB / 0.5786 GB, free: 15.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003904/0.831, allocations: 333 kB / 0.579 GB, free: 15.56 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.19e-05/0.831, allocations: 25.7 kB / 0.579 GB, free: 15.53 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.8312, allocations: 247.5 kB / 0.5792 GB, free: 15.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.81e-05/0.8313, allocations: 86.72 kB / 0.5793 GB, free: 15.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.283e-05/0.8313, allocations: 0 / 0.5793 GB, free: 15.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.8314, allocations: 354.8 kB / 0.5796 GB, free: 14.84 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.8316, allocations: 72.88 kB / 0.5797 GB, free: 14.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002564/0.8318, allocations: 212.8 kB / 0.5799 GB, free: 14.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.832, allocations: 114.5 kB / 0.58 GB, free: 14.39 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.8321, allocations: 3.984 kB / 0.58 GB, free: 14.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008086/0.8329, allocations: 391.9 kB / 0.5804 GB, free: 14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.8329, allocations: 4 kB / 0.5804 GB, free: 14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.587e-06/0.8329, allocations: 4 kB / 0.5804 GB, free: 13.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004246/0.8333, allocations: 97.06 kB / 0.5805 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002652/0.8336, allocations: 67.91 kB / 0.5806 GB, free: 13.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001841/0.8355, allocations: 1.615 MB / 0.5821 GB, free: 12.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002741/0.8358, allocations: 12.06 kB / 0.5822 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.446e-05/0.8358, allocations: 27.89 kB / 0.5822 GB, free: 12.06 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcm_par.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: 19 * 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 (40): * Single equations (assignments): 39 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.836, allocations: 117 kB / 0.5823 GB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.611e-05/0.836, allocations: 39.53 kB / 0.5823 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005693/0.8366, allocations: 261.9 kB / 0.5826 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.8366, allocations: 4 kB / 0.5826 GB, free: 11.63 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.8366, allocations: 4 kB / 0.5826 GB, free: 11.63 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.8367, allocations: 0 / 0.5826 GB, free: 11.63 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.8378, allocations: 0.7025 MB / 0.5833 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.8378, allocations: 4 kB / 0.5833 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002999/0.8381, allocations: 43.97 kB / 0.5833 GB, free: 10.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002131/0.8383, allocations: 48.81 kB / 0.5834 GB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.592e-05/0.8384, allocations: 7.984 kB / 0.5834 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001254/0.8396, allocations: 1.381 MB / 0.5847 GB, free: 9.273 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.8396, allocations: 0 / 0.5847 GB, free: 9.273 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007149/0.8404, allocations: 473.7 kB / 0.5852 GB, free: 8.773 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009498/0.8413, allocations: 0.9393 MB / 0.5861 GB, free: 7.793 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001845/0.8415, allocations: 140.5 kB / 0.5862 GB, free: 7.637 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.146e-05/0.8416, allocations: 4 kB / 0.5862 GB, free: 7.633 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/0.8418, allocations: 8 kB / 0.5862 GB, free: 7.625 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.046e-05/0.8419, allocations: 11.97 kB / 0.5863 GB, free: 7.613 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.8419, allocations: 15.98 kB / 0.5863 GB, free: 7.598 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002715/0.8422, allocations: 255.2 kB / 0.5865 GB, free: 7.352 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001086/0.8433, allocations: 123.9 kB / 0.5866 GB, free: 7.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.0007924/0.8441, allocations: 338.1 kB / 0.587 GB, free: 6.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006596/0.8448, allocations: 334.3 kB / 0.5873 GB, free: 6.574 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.8448, allocations: 4.25 kB / 0.5873 GB, free: 6.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003368/0.8451, allocations: 213.7 kB / 0.5875 GB, free: 6.352 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005445/0.8457, allocations: 101.5 kB / 0.5876 GB, free: 6.25 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.8473, allocations: 0.8771 MB / 0.5884 GB, free: 5.344 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005288/0.8478, allocations: 0.9314 MB / 0.5893 GB, free: 4.387 MB / 426.7 MB Notification: Performance of SimCode: time 3.01e-07/0.8478, allocations: 0 / 0.5893 GB, free: 4.387 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat does not exist to compare? outputFormat=mat