Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.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.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance",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.00172/0.001719, allocations: 181.1 kB / 8.135 MB, free: 2.211 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.215/1.215, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0008654/0.0008655, allocations: 91.72 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.1626/0.1626, allocations: 37.96 MB / 347.7 MB, free: 7.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1761/0.3387, allocations: 62.45 MB / 410.1 MB, free: 46.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.4512, allocations: 56.31 MB / 466.4 MB, free: 6.375 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4002/0.8514, allocations: 100.1 MB / 0.5533 GB, free: 10.35 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003384/0.8519, allocations: 91.94 kB / 0.5534 GB, free: 10.26 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.04038/0.8923, allocations: 12.82 MB / 0.5659 GB, free: 13.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.8923, allocations: 12 kB / 0.5659 GB, free: 13.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007549/0.8931, allocations: 95.27 kB / 0.566 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002674/0.8958, allocations: 0.8533 MB / 0.5668 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.8959, allocations: 12 kB / 0.5668 GB, free: 12.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.817e-05/0.896, allocations: 24 kB / 0.5668 GB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000753/0.8967, allocations: 369.9 kB / 0.5672 GB, free: 11.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009082/0.8977, allocations: 0.5724 MB / 0.5678 GB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.854e-05/0.8977, allocations: 11.88 kB / 0.5678 GB, free: 11.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.276e-05/0.8978, allocations: 0 / 0.5678 GB, free: 11.22 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.66e-05/0.8978, allocations: 32.77 kB / 0.5678 GB, free: 11.19 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003638/0.9015, allocations: 2.843 MB / 0.5706 GB, free: 8.207 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.9018, allocations: 193 kB / 0.5708 GB, free: 8 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.902, allocations: 133.7 kB / 0.5709 GB, free: 7.863 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.026e-05/0.9021, allocations: 3.984 kB / 0.5709 GB, free: 7.859 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.9021, allocations: 43.31 kB / 0.5709 GB, free: 7.809 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 3.125e-06/0.9021, allocations: 0 / 0.5709 GB, free: 7.809 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001704/0.9038, allocations: 0.8462 MB / 0.5718 GB, free: 6.906 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.9039, allocations: 85.33 kB / 0.5718 GB, free: 6.805 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003503/0.9043, allocations: 275.4 kB / 0.5721 GB, free: 6.535 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.9043, allocations: 25.7 kB / 0.5721 GB, free: 6.504 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.9045, allocations: 259.1 kB / 0.5724 GB, free: 6.242 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.249e-05/0.9045, allocations: 86.75 kB / 0.5725 GB, free: 6.156 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.031e-05/0.9046, allocations: 3.938 kB / 0.5725 GB, free: 6.152 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002044/0.9048, allocations: 346.8 kB / 0.5728 GB, free: 5.805 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.905, allocations: 132.8 kB / 0.5729 GB, free: 5.676 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002964/0.9053, allocations: 324.3 kB / 0.5732 GB, free: 5.277 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003354/0.9057, allocations: 206.3 kB / 0.5734 GB, free: 5.078 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.9057, allocations: 7.938 kB / 0.5734 GB, free: 5.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001088/0.9068, allocations: 0.5451 MB / 0.574 GB, free: 4.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.9068, allocations: 5.406 kB / 0.574 GB, free: 4.516 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006675/0.9075, allocations: 328.5 kB / 0.5743 GB, free: 4.191 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003884/0.9079, allocations: 80.78 kB / 0.5744 GB, free: 4.109 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003755/0.9083, allocations: 87.83 kB / 0.5744 GB, free: 4.023 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/0.9099, allocations: 1.514 MB / 0.5759 GB, free: 2.391 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.9103, allocations: 12.03 kB / 0.5759 GB, free: 2.379 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.9103, allocations: 20 kB / 0.576 GB, free: 2.359 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (48): * Single equations (assignments): 46 * Array equations: 1 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001206/0.9104, allocations: 124.9 kB / 0.5761 GB, free: 2.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.633e-05/0.9105, allocations: 31.62 kB / 0.5761 GB, free: 2.199 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006675/0.9112, allocations: 344.6 kB / 0.5764 GB, free: 1.859 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/0.9112, allocations: 7.906 kB / 0.5764 GB, free: 1.852 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.9112, allocations: 4 kB / 0.5764 GB, free: 1.848 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.9112, allocations: 3.984 kB / 0.5764 GB, free: 1.844 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001338/0.9126, allocations: 0.7984 MB / 0.5772 GB, free: 0.9961 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.9126, allocations: 4 kB / 0.5772 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003507/0.913, allocations: 51.97 kB / 0.5773 GB, free: 0.9414 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.913, allocations: 4 kB / 0.5773 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.913, allocations: 4.062 kB / 0.5773 GB, free: 0.9336 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.913, allocations: 4 kB / 0.5773 GB, free: 0.9297 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.913, allocations: 3.938 kB / 0.5773 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007084/0.9137, allocations: 0.5922 MB / 0.5779 GB, free: 296 kB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001061/0.9148, allocations: 1.112 MB / 0.579 GB, free: 15.13 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.915, allocations: 112.6 kB / 0.5791 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.749e-05/0.915, allocations: 0 / 0.5791 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.9152, allocations: 7.984 kB / 0.5791 GB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.9153, allocations: 19.92 kB / 0.5791 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.039e-05/0.9153, allocations: 8 kB / 0.5791 GB, free: 14.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0001937/0.9155, allocations: 207.1 kB / 0.5793 GB, free: 14.77 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001105/0.9166, allocations: 103.9 kB / 0.5794 GB, free: 14.66 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001824/0.9168, allocations: 131 kB / 0.5795 GB, free: 14.52 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007778/0.9176, allocations: 446.8 kB / 0.58 GB, free: 14.08 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.9176, allocations: 0 / 0.58 GB, free: 14.08 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000244/0.9179, allocations: 136.3 kB / 0.5801 GB, free: 13.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.9183, allocations: 65.25 kB / 0.5801 GB, free: 13.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001472/0.9198, allocations: 0.7716 MB / 0.5809 GB, free: 13.07 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006331/0.9204, allocations: 0.9233 MB / 0.5818 GB, free: 12.12 MB / 426.7 MB Notification: Performance of SimCode: time 2.71e-07/0.9204, allocations: 0 / 0.5818 GB, free: 12.12 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1)