Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",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.2+maint.om/package.mo): time 0.0009926/0.0009926, allocations: 183.4 kB / 8.137 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.02/1.02, allocations: 194.2 MB / 202.8 MB, free: 8.652 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001607/0.001607, allocations: 118.6 kB / 247.7 MB, free: 6.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1601/0.1601, allocations: 37.91 MB / 330.5 MB, free: 6.906 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1861/0.3462, allocations: 59.35 MB / 389.9 MB, free: 78 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07748/0.4237, allocations: 53.23 MB / 443.1 MB, free: 24.86 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2442/0.6679, allocations: 94.42 MB / 0.5249 GB, free: 9.129 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.6682, allocations: 89.55 kB / 0.525 GB, free: 9.117 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.03573/0.7039, allocations: 14.55 MB / 0.5392 GB, free: 104 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.704, allocations: 11.94 kB / 0.5392 GB, free: 92 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.7041, allocations: 75.06 kB / 0.5393 GB, free: 16 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002647/0.7067, allocations: 1.11 MB / 0.5404 GB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/0.7069, allocations: 104.5 kB / 0.5405 GB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.599e-05/0.707, allocations: 35.91 kB / 0.5405 GB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000872/0.7079, allocations: 0.5735 MB / 0.5411 GB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009201/0.7088, allocations: 0.6678 MB / 0.5417 GB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.7089, allocations: 0 / 0.5417 GB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.065e-05/0.7089, allocations: 4 kB / 0.5417 GB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.7089, allocations: 16 kB / 0.5418 GB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003751/0.7127, allocations: 2.715 MB / 0.5444 GB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000575/0.7133, allocations: 497.1 kB / 0.5449 GB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003356/0.7136, allocations: 297.4 kB / 0.5452 GB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.7137, allocations: 11.75 kB / 0.5452 GB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.7137, allocations: 37.25 kB / 0.5452 GB, free: 11.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=38): time 1.763e-06/0.7137, allocations: 0 / 0.5452 GB, free: 11.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.001849/0.7156, allocations: 1.313 MB / 0.5465 GB, free: 9.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.7156, allocations: 81.11 kB / 0.5466 GB, free: 9.832 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003024/0.7159, allocations: 305.2 kB / 0.5469 GB, free: 9.586 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.351e-05/0.716, allocations: 30.39 kB / 0.5469 GB, free: 9.551 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.7161, allocations: 269 kB / 0.5472 GB, free: 9.309 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.7162, allocations: 131.8 kB / 0.5473 GB, free: 9.195 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.223e-05/0.7162, allocations: 0 / 0.5473 GB, free: 9.195 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.7164, allocations: 352.7 kB / 0.5476 GB, free: 8.859 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002588/0.7166, allocations: 196.6 kB / 0.5478 GB, free: 8.734 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003189/0.717, allocations: 303.4 kB / 0.5481 GB, free: 8.465 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00029/0.7173, allocations: 220.9 kB / 0.5483 GB, free: 8.316 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.7173, allocations: 7.938 kB / 0.5483 GB, free: 8.309 MB / 362.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008992/0.7182, allocations: 0.6759 MB / 0.549 GB, free: 7.742 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.7182, allocations: 4 kB / 0.549 GB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.7182, allocations: 8 kB / 0.549 GB, free: 7.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002123/0.7184, allocations: 67.73 kB / 0.549 GB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001624/0.7201, allocations: 411 kB / 0.5494 GB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004722/0.7248, allocations: 5.66 MB / 0.555 GB, free: 1.371 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004491/0.7253, allocations: 36.12 kB / 0.555 GB, free: 1.336 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.977e-05/0.7253, allocations: 23.3 kB / 0.555 GB, free: 1.316 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001362/0.7255, allocations: 112.1 kB / 0.5551 GB, free: 1.203 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.7256, allocations: 47.44 kB / 0.5552 GB, free: 1.156 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009287/0.7265, allocations: 0.6225 MB / 0.5558 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.7265, allocations: 4 kB / 0.5558 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.7266, allocations: 4 kB / 0.5558 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.7266, allocations: 0 / 0.5558 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.7284, allocations: 1.316 MB / 0.5571 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.7284, allocations: 4 kB / 0.5571 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001742/0.7302, allocations: 435.6 kB / 0.5575 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001929/0.7304, allocations: 72.17 kB / 0.5576 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.303e-05/0.7304, allocations: 7.984 kB / 0.5576 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001769/0.7322, allocations: 2.712 MB / 0.5602 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.7322, allocations: 3.938 kB / 0.5602 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001109/0.7333, allocations: 1.012 MB / 0.5612 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001547/0.7349, allocations: 1.708 MB / 0.5629 GB, free: 9.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.735, allocations: 116.5 kB / 0.563 GB, free: 9.797 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.414e-05/0.7351, allocations: 8 kB / 0.563 GB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003467/0.7355, allocations: 31.97 kB / 0.563 GB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.7356, allocations: 35.52 kB / 0.5631 GB, free: 9.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.944e-05/0.7356, allocations: 11.98 kB / 0.5631 GB, free: 9.719 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002749/0.7359, allocations: 240.3 kB / 0.5633 GB, free: 9.531 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001253/0.7372, allocations: 131.9 kB / 0.5634 GB, free: 9.402 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 36 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001812/0.7373, allocations: 125.7 kB / 0.5635 GB, free: 9.277 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002402/0.7398, allocations: 1.074 MB / 0.5646 GB, free: 8.324 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.7398, allocations: 384 / 0.5646 GB, free: 8.324 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002258/0.742, allocations: 0.9359 MB / 0.5655 GB, free: 7.449 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005909/0.7426, allocations: 108.6 kB / 0.5656 GB, free: 7.367 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.7445, allocations: 1.071 MB / 0.5667 GB, free: 6.379 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006404/0.7451, allocations: 1.004 MB / 0.5676 GB, free: 5.375 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.7451, allocations: 4 kB / 0.5676 GB, free: 5.371 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1)