Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",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.0009672/0.0009672, allocations: 183.1 kB / 8.133 MB, free: 2.207 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.236/1.236, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0008754/0.0008754, allocations: 95.33 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.1691/0.1691, allocations: 37.97 MB / 347.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2027/0.3718, allocations: 62.43 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.4735, allocations: 56.32 MB / 466.4 MB, free: 6.371 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.363/0.8365, allocations: 117.4 MB / 0.5701 GB, free: 9.035 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.8369, allocations: 91.94 kB / 0.5702 GB, free: 8.945 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.08966/0.9266, allocations: 31.95 MB / 0.6014 GB, free: 8.641 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.9266, allocations: 15.94 kB / 0.6014 GB, free: 8.625 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007064/0.9273, allocations: 134.6 kB / 0.6016 GB, free: 8.492 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002391/0.9297, allocations: 0.9876 MB / 0.6025 GB, free: 7.461 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.497e-05/0.9298, allocations: 27.91 kB / 0.6026 GB, free: 7.434 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000195/0.93, allocations: 55.98 kB / 0.6026 GB, free: 7.379 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001385/0.9314, allocations: 0.824 MB / 0.6034 GB, free: 6.555 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.9329, allocations: 1.012 MB / 0.6044 GB, free: 5.473 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.484e-05/0.9329, allocations: 15.84 kB / 0.6044 GB, free: 5.457 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.639e-05/0.933, allocations: 0 / 0.6044 GB, free: 5.457 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.9331, allocations: 65.97 kB / 0.6045 GB, free: 5.391 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006005/0.9391, allocations: 4.397 MB / 0.6088 GB, free: 0.7812 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005544/0.9397, allocations: 404.1 kB / 0.6092 GB, free: 368 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005462/0.9403, allocations: 359.3 kB / 0.6095 GB, free: 0 / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.702e-05/0.9404, allocations: 8.547 kB / 0.6095 GB, free: 15.99 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.9404, allocations: 47 kB / 0.6096 GB, free: 15.93 MB / 458.7 MB Notification: Performance of pre-optimization done (n=58): time 1.924e-06/0.9404, allocations: 0 / 0.6096 GB, free: 15.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=62): time 0.002901/0.9433, allocations: 1.85 MB / 0.6114 GB, free: 14.01 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.9434, allocations: 137 kB / 0.6115 GB, free: 13.85 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005414/0.9439, allocations: 487.5 kB / 0.612 GB, free: 13.37 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.316e-05/0.944, allocations: 29.7 kB / 0.612 GB, free: 13.33 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002114/0.9442, allocations: 398.7 kB / 0.6124 GB, free: 12.93 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.9444, allocations: 212.9 kB / 0.6126 GB, free: 12.72 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/0.9444, allocations: 3.938 kB / 0.6126 GB, free: 12.72 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.9446, allocations: 394.7 kB / 0.613 GB, free: 12.32 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003682/0.945, allocations: 245.9 kB / 0.6132 GB, free: 12.09 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005119/0.9455, allocations: 499.3 kB / 0.6137 GB, free: 11.49 MB / 458.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.sm_ctrl.rotor.w = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.002563/0.9481, allocations: 0.7732 MB / 0.6144 GB, free: 10.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.9481, allocations: 0 / 0.6144 GB, free: 10.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002727/0.9508, allocations: 1.348 MB / 0.6157 GB, free: 9.289 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001133/0.952, allocations: 3.044 MB / 0.6187 GB, free: 6.008 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.952, allocations: 8 kB / 0.6187 GB, free: 6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001676/0.9537, allocations: 454.2 kB / 0.6192 GB, free: 5.551 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000544/0.9542, allocations: 143.8 kB / 0.6193 GB, free: 5.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003901/0.9582, allocations: 4.037 MB / 0.6232 GB, free: 1.113 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007034/0.9589, allocations: 27.94 kB / 0.6233 GB, free: 1.086 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.456e-05/0.959, allocations: 39.98 kB / 0.6233 GB, free: 1.047 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.959, allocations: 6.344 kB / 0.6233 GB, free: 1.043 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0025/0.9615, allocations: 1.19 MB / 0.6245 GB, free: 15.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.9615, allocations: 12.34 kB / 0.6245 GB, free: 15.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001581/0.9631, allocations: 442.1 kB / 0.6249 GB, free: 15.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005307/0.9636, allocations: 139.8 kB / 0.625 GB, free: 15.22 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008406/0.9721, allocations: 6.805 MB / 0.6317 GB, free: 8.059 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000631/0.9727, allocations: 19.89 kB / 0.6317 GB, free: 8.039 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.496e-05/0.9728, allocations: 39.98 kB / 0.6317 GB, free: 8 MB / 474.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.sm_ctrl.rotor.w = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: sm_ctrl.motor.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] sm_ctrl.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: 35 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 66 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.000263/0.9731, allocations: 128.8 kB / 0.6319 GB, free: 7.867 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.9732, allocations: 75.06 kB / 0.6319 GB, free: 7.793 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001289/0.9745, allocations: 0.7795 MB / 0.6327 GB, free: 6.977 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.9745, allocations: 8 kB / 0.6327 GB, free: 6.969 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.9746, allocations: 4 kB / 0.6327 GB, free: 6.965 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.9746, allocations: 7.984 kB / 0.6327 GB, free: 6.957 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002737/0.9773, allocations: 1.683 MB / 0.6344 GB, free: 5.184 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.9773, allocations: 4.062 kB / 0.6344 GB, free: 5.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007746/0.9781, allocations: 135.8 kB / 0.6345 GB, free: 5.047 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001717/0.9783, allocations: 49.7 kB / 0.6345 GB, free: 4.992 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.247e-05/0.9784, allocations: 11.98 kB / 0.6345 GB, free: 4.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/0.9804, allocations: 2.632 MB / 0.6371 GB, free: 2.117 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.9805, allocations: 0 / 0.6371 GB, free: 2.117 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001782/0.9823, allocations: 1.299 MB / 0.6384 GB, free: 0.7422 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1683/1.151, allocations: 2.031 MB / 0.6404 GB, free: 186.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00045/1.151, allocations: 202.6 kB / 0.6406 GB, free: 186.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000206/1.151, allocations: 10.28 kB / 0.6406 GB, free: 186.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005804/1.152, allocations: 18.94 kB / 0.6406 GB, free: 186.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/1.152, allocations: 38.47 kB / 0.6406 GB, free: 186.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-05/1.152, allocations: 20.66 kB / 0.6406 GB, free: 186.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0004998/1.153, allocations: 364.5 kB / 0.641 GB, free: 186.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002946/1.156, allocations: 345.9 kB / 0.6413 GB, free: 186.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.rotor.phi,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003096/1.156, allocations: 154.5 kB / 0.6415 GB, free: 186.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003128/1.159, allocations: 1.801 MB / 0.6432 GB, free: 186.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/1.159, allocations: 3.844 kB / 0.6432 GB, free: 186.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000629/1.16, allocations: 0.5082 MB / 0.6437 GB, free: 185.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009067/1.161, allocations: 147.6 kB / 0.6439 GB, free: 185.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003559/1.164, allocations: 1.644 MB / 0.6455 GB, free: 185.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009797/1.165, allocations: 1.18 MB / 0.6466 GB, free: 184.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.012e-06/1.165, allocations: 0 / 0.6466 GB, free: 184.8 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv_res.mat does not exist to compare? outputFormat=mat