Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.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.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale",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.816/1.816, allocations: 390.4 MB / 397.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009202/0.0009199, allocations: 175.8 kB / 490.8 MB, free: 1.957 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.132/1.132, allocations: 221.3 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008288/0.0008292, allocations: 83.55 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4314/0.4322, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.617, allocations: 143 MB / 1.212 GB, free: 40.01 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5133/1.13, allocations: 151.3 MB / 1.359 GB, free: 17.38 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001799/1.131, allocations: 75.08 kB / 1.359 GB, free: 17.38 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.02787/1.159, allocations: 11.28 MB / 1.371 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/1.159, allocations: 8.562 kB / 1.371 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/1.159, allocations: 75.11 kB / 1.371 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005502/1.159, allocations: 407.5 kB / 1.371 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/1.159, allocations: 21.91 kB / 1.371 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.358e-05/1.159, allocations: 40.34 kB / 1.371 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005377/1.16, allocations: 292.3 kB / 1.371 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006518/1.161, allocations: 424.8 kB / 1.372 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/1.161, allocations: 1 kB / 1.372 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.557e-05/1.161, allocations: 6.609 kB / 1.372 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/1.161, allocations: 15.64 kB / 1.372 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/1.163, allocations: 1.569 MB / 1.373 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000322/1.163, allocations: 225.9 kB / 1.373 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004673/1.164, allocations: 291.8 kB / 1.374 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.115e-05/1.164, allocations: 9.516 kB / 1.374 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003331/1.164, allocations: 224 kB / 1.374 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=53): time 1.924e-06/1.164, allocations: 0.8438 kB / 1.374 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=53): time 0.0006301/1.165, allocations: 364.6 kB / 1.374 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/1.165, allocations: 113.9 kB / 1.374 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/1.165, allocations: 291.5 kB / 1.375 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.281e-05/1.165, allocations: 34.69 kB / 1.375 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/1.165, allocations: 215.7 kB / 1.375 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/1.165, allocations: 169.7 kB / 1.375 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.453e-05/1.165, allocations: 3.344 kB / 1.375 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001269/1.166, allocations: 355.9 kB / 1.375 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003044/1.166, allocations: 169.6 kB / 1.376 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003643/1.166, allocations: 269.8 kB / 1.376 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005497/1.167, allocations: 215.8 kB / 1.376 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/1.167, allocations: 0 / 1.376 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001054/1.168, allocations: 0.5368 MB / 1.377 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002122/1.168, allocations: 0.613 MB / 1.377 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/1.168, allocations: 2.594 kB / 1.377 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/1.168, allocations: 8.312 kB / 1.377 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004529/1.169, allocations: 103.6 kB / 1.377 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/1.169, allocations: 8.734 kB / 1.377 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005574/1.169, allocations: 124.1 kB / 1.377 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-05/1.169, allocations: 32.86 kB / 1.377 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.652e-06/1.169, allocations: 7.812 kB / 1.377 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009285/1.17, allocations: 461.6 kB / 1.378 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/1.17, allocations: 2 kB / 1.378 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.043e-06/1.17, allocations: 4 kB / 1.378 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003594/1.171, allocations: 90.92 kB / 1.378 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/1.171, allocations: 4.156 kB / 1.378 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005141/1.171, allocations: 119.4 kB / 1.378 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.561e-05/1.171, allocations: 23.41 kB / 1.378 GB, free: 29.3 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition6,$whenCondition5,$PRE.booPul.y,booPul.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001444/1.171, allocations: 124.9 kB / 1.378 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.233e-05/1.171, allocations: 44.52 kB / 1.378 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006485/1.172, allocations: 394.3 kB / 1.379 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/1.172, allocations: 5.375 kB / 1.379 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/1.172, allocations: 0 / 1.379 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/1.172, allocations: 3.875 kB / 1.379 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001454/1.174, allocations: 1.06 MB / 1.38 GB, free: 28.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/1.174, allocations: 2.031 kB / 1.38 GB, free: 28.74 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004217/1.174, allocations: 91.41 kB / 1.38 GB, free: 28.74 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.774e-06/1.174, allocations: 8.125 kB / 1.38 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.418e-05/1.174, allocations: 6.578 kB / 1.38 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.139e-06/1.174, allocations: 7.625 kB / 1.38 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/1.174, allocations: 2.328 kB / 1.38 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009073/1.175, allocations: 0.7681 MB / 1.381 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001257/1.176, allocations: 1.333 MB / 1.382 GB, free: 27.71 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.069e-05/1.176, allocations: 133.4 kB / 1.382 GB, free: 27.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.309e-05/1.176, allocations: 6.812 kB / 1.382 GB, free: 27.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/1.177, allocations: 27.27 kB / 1.382 GB, free: 27.58 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.534e-05/1.177, allocations: 31.64 kB / 1.382 GB, free: 27.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-05/1.177, allocations: 22.56 kB / 1.382 GB, free: 27.57 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.000226/1.177, allocations: 223.7 kB / 1.382 GB, free: 27.49 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001921/1.179, allocations: 216 kB / 1.383 GB, free: 27.44 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 8 ($whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002196/1.179, allocations: 128.5 kB / 1.383 GB, free: 27.34 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001216/1.18, allocations: 0.7936 MB / 1.383 GB, free: 27.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/1.18, allocations: 1.156 kB / 1.383 GB, free: 27.18 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002811/1.181, allocations: 192.5 kB / 1.384 GB, free: 27.16 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000528/1.181, allocations: 76 kB / 1.384 GB, free: 27.16 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/1.183, allocations: 0.7477 MB / 1.384 GB, free: 26.87 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006765/1.183, allocations: 0.9363 MB / 1.385 GB, free: 26.14 MB / 0.8386 GB Notification: Performance of SimCode: time 3.01e-07/1.183, allocations: 0 / 1.385 GB, free: 26.14 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1)