Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004778/0.004778, allocations: 99.06 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 189.4 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 4.199 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.681/2.681, allocations: 482.6 MB / 0.755 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001773, allocations: 63.89 kB / 1.083 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2832, allocations: 162.3 MB / 1.242 GB, free: 9.859 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005986/0.2892, allocations: 4.095 MB / 1.246 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002361/0.2916, allocations: 1.593 MB / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.2918, allocations: 4 kB / 1.247 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001464/0.2933, allocations: 0.5915 MB / 1.248 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004388/0.2937, allocations: 238.8 kB / 1.248 GB, free: 3.309 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004643/0.2942, allocations: 199.6 kB / 1.248 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0005721/0.2948, allocations: 0.549 MB / 1.249 GB, free: 2.562 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006581/0.2954, allocations: 485.8 kB / 1.249 GB, free: 2.082 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002394/0.2957, allocations: 227.2 kB / 1.25 GB, free: 1.859 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003903/0.2961, allocations: 251.1 kB / 1.25 GB, free: 1.613 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.966e-05/0.2962, allocations: 36 kB / 1.25 GB, free: 1.578 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000277/0.2964, allocations: 167.6 kB / 1.25 GB, free: 1.414 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.2966, allocations: 143.7 kB / 1.25 GB, free: 1.273 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001911/0.2968, allocations: 195.1 kB / 1.25 GB, free: 1.082 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005678/0.2974, allocations: 0.5293 MB / 1.251 GB, free: 0.5508 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2974, allocations: 0 / 1.251 GB, free: 0.5508 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.283e-06/0.2974, allocations: 0 / 1.251 GB, free: 0.5508 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.2974, allocations: 0 / 1.251 GB, free: 0.5508 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.5338/0.8312, allocations: 0.6917 MB / 1.252 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.8313, allocations: 9.781 kB / 1.252 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.071e-05/0.8314, allocations: 75.28 kB / 1.252 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007812/0.8321, allocations: 109.6 kB / 1.252 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003753/0.8325, allocations: 313.5 kB / 1.252 GB, free: 15.05 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.372e-05/0.8326, allocations: 54.12 kB / 1.252 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.719e-05/0.8327, allocations: 36.12 kB / 1.252 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007587/0.8334, allocations: 0.4987 MB / 1.253 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.8334, allocations: 1.344 kB / 1.253 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.42e-05/0.8335, allocations: 18.88 kB / 1.253 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.672e-05/0.8335, allocations: 33.33 kB / 1.253 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006741/0.8342, allocations: 380.4 kB / 1.253 GB, free: 14.92 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001909/0.8361, allocations: 2.2 MB / 1.255 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006536/0.8368, allocations: 264 kB / 1.255 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003337/0.8371, allocations: 148.4 kB / 1.256 GB, free: 13.03 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.8372, allocations: 3.234 kB / 1.256 GB, free: 13.03 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.571e-05/0.8372, allocations: 36.62 kB / 1.256 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=19): time 1.463e-06/0.8372, allocations: 0 / 1.256 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of matching and sorting (n=19): time 0.001394/0.8386, allocations: 0.568 MB / 1.256 GB, free: 12.65 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.169e-05/0.8386, allocations: 58.48 kB / 1.256 GB, free: 12.58 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.8388, allocations: 226 kB / 1.256 GB, free: 12.44 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.8389, allocations: 31.52 kB / 1.256 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.974e-05/0.839, allocations: 215.3 kB / 1.257 GB, free: 12.23 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.706e-05/0.839, allocations: 68.58 kB / 1.257 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.196e-05/0.8391, allocations: 50.42 kB / 1.257 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.008e-05/0.8392, allocations: 340.4 kB / 1.257 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.8394, allocations: 91.84 kB / 1.257 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002488/0.8396, allocations: 183.1 kB / 1.257 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004266/0.8401, allocations: 278.2 kB / 1.258 GB, free: 11.49 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.8401, allocations: 0.9375 kB / 1.258 GB, free: 11.49 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008136/0.8409, allocations: 373.5 kB / 1.258 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.8409, allocations: 9.328 kB / 1.258 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.8409, allocations: 3.094 kB / 1.258 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004926/0.8414, allocations: 108.3 kB / 1.258 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001965/0.8416, allocations: 48.34 kB / 1.258 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002412/0.8441, allocations: 3.056 MB / 1.261 GB, free: 8.398 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.8443, allocations: 35.2 kB / 1.261 GB, free: 8.379 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.8443, allocations: 12.73 kB / 1.261 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003058/0.8446, allocations: 219.1 kB / 1.261 GB, free: 8.25 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002336/0.8449, allocations: 181.3 kB / 1.262 GB, free: 8.113 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004144/0.8453, allocations: 279 kB / 1.262 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.983e-06/0.8453, allocations: 1.094 kB / 1.262 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007576/0.8461, allocations: 348 kB / 1.262 GB, free: 7.801 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.8461, allocations: 13.08 kB / 1.262 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.8461, allocations: 2.688 kB / 1.262 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002897/0.8464, allocations: 83.41 kB / 1.262 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002106/0.8466, allocations: 54.34 kB / 1.262 GB, free: 7.77 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/0.8482, allocations: 1.611 MB / 1.264 GB, free: 6.305 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.8484, allocations: 33.88 kB / 1.264 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.8484, allocations: 12.47 kB / 1.264 GB, free: 6.285 MB / 0.9981 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 8.007e-05/0.8485, allocations: 201.5 kB / 1.264 GB, free: 6.086 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.8486, allocations: 18.97 kB / 1.264 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.185e-05/0.8486, allocations: 31.11 kB / 1.264 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.8486, allocations: 1.719 kB / 1.264 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.8486, allocations: 2 kB / 1.264 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.8486, allocations: 4.719 kB / 1.264 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.8498, allocations: 0.8371 MB / 1.265 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.8498, allocations: 0.9688 kB / 1.265 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.85, allocations: 33.5 kB / 1.265 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003435/0.8503, allocations: 100.4 kB / 1.265 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.8503, allocations: 16.97 kB / 1.265 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002077/0.8524, allocations: 3.014 MB / 1.268 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.8524, allocations: 1.156 kB / 1.268 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007063/0.8531, allocations: 416.9 kB / 1.268 GB, free: 2.316 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.596e-05/0.8532, allocations: 120.5 kB / 1.269 GB, free: 2.199 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.928e-05/0.8533, allocations: 12.81 kB / 1.269 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.8534, allocations: 12.73 kB / 1.269 GB, free: 2.188 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.226e-05/0.8535, allocations: 20.72 kB / 1.269 GB, free: 2.184 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.8535, allocations: 4.469 kB / 1.269 GB, free: 2.184 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001206/0.8537, allocations: 160.9 kB / 1.269 GB, free: 2.082 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8537, allocations: 0 / 1.269 GB, free: 2.082 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0006132/0.8543, allocations: 173.7 kB / 1.269 GB, free: 2.035 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007993/0.8551, allocations: 0.9559 MB / 1.27 GB, free: 1.246 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001612/0.8567, allocations: 0.7518 MB / 1.271 GB, free: 0.8047 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.8567, allocations: 4.062 kB / 1.271 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006521/0.8574, allocations: 377.2 kB / 1.271 GB, free: 0.5352 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003979/0.8578, allocations: 66.91 kB / 1.271 GB, free: 0.5078 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.8616, allocations: 2.85 MB / 1.274 GB, free: 14.56 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004535/0.862, allocations: 0.8146 MB / 1.275 GB, free: 13.84 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001728/0.8622, allocations: 51.27 kB / 1.275 GB, free: 13.84 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.8624, allocations: 92.95 kB / 1.275 GB, free: 13.77 MB / 1.014 GB Notification: Performance of SimCode: time 2.2e-07/0.8624, allocations: 4 kB / 1.275 GB, free: 13.76 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7379/1.6, allocations: 7.366 MB / 1.282 GB, free: 12.99 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.78/20.38, allocations: 6.984 kB / 1.282 GB, free: 12.98 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat does not exist to compare? outputFormat=mat