Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",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/Buildings 10.0.0-master/package.mo): time 1.792/1.792, allocations: 390.4 MB / 397.7 MB, free: 10.6 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001025, allocations: 181.1 kB / 490.8 MB, free: 11.12 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.118/1.118, allocations: 221.4 MB / 0.7863 GB, free: 13.49 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008407/0.0008407, allocations: 95.27 kB / 0.9264 GB, free: 4.434 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2321/0.233, allocations: 149.1 MB / 1.072 GB, free: 15.39 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4865/0.7195, allocations: 143 MB / 1.212 GB, free: 155.9 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1585/0.8781, allocations: 179.9 MB / 1.387 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001893/0.8783, allocations: 91.92 kB / 1.387 GB, free: 11.47 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/AC/OnePhase/Conversion/ACDCConverter.mo:42:5-42:39:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.root(terminal_p.theta);. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.04189/0.9202, allocations: 20.31 MB / 1.407 GB, free: 7.066 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.9203, allocations: 8 kB / 1.407 GB, free: 7.059 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008524/0.9211, allocations: 105.2 kB / 1.407 GB, free: 6.957 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003222/0.9214, allocations: 263.3 kB / 1.408 GB, free: 6.66 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.9215, allocations: 8 kB / 1.408 GB, free: 6.652 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.222e-05/0.9215, allocations: 12.56 kB / 1.408 GB, free: 6.641 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003675/0.9219, allocations: 241.5 kB / 1.408 GB, free: 6.402 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004091/0.9223, allocations: 318.1 kB / 1.408 GB, free: 6.074 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.9223, allocations: 0 / 1.408 GB, free: 6.074 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.747e-05/0.9224, allocations: 5.031 kB / 1.408 GB, free: 6.07 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.333e-05/0.9224, allocations: 24.42 kB / 1.408 GB, free: 6.047 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001865/0.9243, allocations: 1.697 MB / 1.41 GB, free: 4.203 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002389/0.9245, allocations: 208.2 kB / 1.41 GB, free: 3.984 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001242/0.9246, allocations: 97.69 kB / 1.41 GB, free: 3.883 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000101/0.9248, allocations: 90.31 kB / 1.41 GB, free: 3.777 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.9248, allocations: 35.94 kB / 1.41 GB, free: 3.734 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=16): time 1.342e-06/0.9248, allocations: 3.938 kB / 1.41 GB, free: 3.73 MB / 0.9011 GB Notification: Performance of matching and sorting (n=23): time 0.001717/0.9265, allocations: 0.6956 MB / 1.411 GB, free: 3.027 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.9266, allocations: 94.38 kB / 1.411 GB, free: 2.918 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.9267, allocations: 173.8 kB / 1.411 GB, free: 2.738 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.9268, allocations: 27.08 kB / 1.411 GB, free: 2.707 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 7.163e-05/0.9268, allocations: 163.8 kB / 1.411 GB, free: 2.543 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 5.128e-05/0.9269, allocations: 74.84 kB / 1.411 GB, free: 2.469 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.359e-05/0.9269, allocations: 0 / 1.411 GB, free: 2.469 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 8.666e-05/0.927, allocations: 332.3 kB / 1.412 GB, free: 2.137 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.9272, allocations: 132.4 kB / 1.412 GB, free: 2.008 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.9274, allocations: 204.2 kB / 1.412 GB, free: 1.777 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/0.9278, allocations: 189.2 kB / 1.412 GB, free: 1.598 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.9278, allocations: 4.656 kB / 1.412 GB, free: 1.594 MB / 0.9011 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009678/0.9288, allocations: 0.5132 MB / 1.413 GB, free: 1.066 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.9288, allocations: 5.062 kB / 1.413 GB, free: 1.062 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.9288, allocations: 4 kB / 1.413 GB, free: 1.059 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003855/0.9292, allocations: 142.1 kB / 1.413 GB, free: 0.9102 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/0.9295, allocations: 55.91 kB / 1.413 GB, free: 0.8555 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002437/0.9319, allocations: 3.841 MB / 1.417 GB, free: 12.75 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.9321, allocations: 13.95 kB / 1.417 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/0.9322, allocations: 12 kB / 1.417 GB, free: 12.72 MB / 0.9167 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.idealACDCConverter1.P_n[1]:DUMMY_DER(fixed = false ) "Power transmitted at pin n (primary)" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 28 * 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: 4 * 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: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001237/0.9323, allocations: 116.8 kB / 1.417 GB, free: 12.6 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.463e-05/0.9324, allocations: 23.91 kB / 1.417 GB, free: 12.58 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009515/0.9333, allocations: 481.8 kB / 1.417 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.9333, allocations: 4 kB / 1.417 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.9334, allocations: 3.906 kB / 1.417 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.9334, allocations: 7.984 kB / 1.417 GB, free: 12.08 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/0.9349, allocations: 0.9787 MB / 1.418 GB, free: 11.02 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.9349, allocations: 4 kB / 1.418 GB, free: 11.02 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001385/0.9351, allocations: 31.92 kB / 1.418 GB, free: 10.98 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003503/0.9354, allocations: 131.3 kB / 1.419 GB, free: 10.84 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.174e-05/0.9354, allocations: 7.984 kB / 1.419 GB, free: 10.84 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002358/0.9378, allocations: 3.835 MB / 1.422 GB, free: 6.73 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.9378, allocations: 5.062 kB / 1.422 GB, free: 6.727 MB / 0.9167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008888/0.9387, allocations: 0.7395 MB / 1.423 GB, free: 5.879 MB / 0.9167 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009931/0.9397, allocations: 1.122 MB / 1.424 GB, free: 4.648 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.9399, allocations: 128.8 kB / 1.424 GB, free: 4.504 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.9399, allocations: 4 kB / 1.424 GB, free: 4.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.9401, allocations: 15.98 kB / 1.424 GB, free: 4.484 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.684e-05/0.9402, allocations: 23.88 kB / 1.424 GB, free: 4.461 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.9402, allocations: 8 kB / 1.424 GB, free: 4.453 MB / 0.9167 GB Notification: Performance of sort global known variables: time 0.0001084/0.9403, allocations: 144.3 kB / 1.424 GB, free: 4.312 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001068/0.9414, allocations: 95.92 kB / 1.424 GB, free: 4.219 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * 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: 4 * 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: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002382/0.9416, allocations: 139.1 kB / 1.425 GB, free: 4.07 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0007201/0.9424, allocations: 0.5178 MB / 1.425 GB, free: 3.535 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.9424, allocations: 4 kB / 1.425 GB, free: 3.531 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.000451/0.9428, allocations: 370.5 kB / 1.425 GB, free: 3.152 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.9432, allocations: 38.41 kB / 1.426 GB, free: 3.121 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007916/0.944, allocations: 464.7 kB / 1.426 GB, free: 2.609 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003591/0.9443, allocations: 0.8111 MB / 1.427 GB, free: 1.777 MB / 0.9167 GB Notification: Performance of SimCode: time 1.372e-06/0.9444, allocations: 3.938 kB / 1.427 GB, free: 1.773 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat does not exist to compare? outputFormat=mat