Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_9_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.007809/0.007809, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001637/0.001637, allocations: 202 kB / 16.68 MB, free: 5.926 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.139/2.139, allocations: 390.3 MB / 0.6648 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.91 kB / 0.9504 GB, free: 8.207 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8896/0.8909, allocations: 140.4 MB / 1.087 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.004991/0.8959, allocations: 4.106 MB / 1.091 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002349/0.8983, allocations: 1.587 MB / 1.093 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.8985, allocations: 11.44 kB / 1.093 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00152/0.9, allocations: 0.5796 MB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005106/0.9006, allocations: 242.4 kB / 1.094 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005614/0.9011, allocations: 210.5 kB / 1.094 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006896/0.9018, allocations: 0.5464 MB / 1.095 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007383/0.9026, allocations: 483.5 kB / 1.095 GB, free: 420 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003207/0.9029, allocations: 226.8 kB / 1.095 GB, free: 324 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004749/0.9034, allocations: 257.6 kB / 1.095 GB, free: 212 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.682e-05/0.9035, allocations: 36 kB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003601/0.9038, allocations: 166 kB / 1.096 GB, free: 160 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001735/0.904, allocations: 147.8 kB / 1.096 GB, free: 100 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002218/0.9043, allocations: 200.4 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0007322/0.905, allocations: 0.5167 MB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.905, allocations: 0 / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.004e-06/0.905, allocations: 4 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.849e-05/0.905, allocations: 1.297 kB / 1.097 GB, free: 15.8 MB / 0.8731 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.001276/0.9063, allocations: 0.677 MB / 1.097 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.9064, allocations: 8.969 kB / 1.097 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000107/0.9065, allocations: 78.16 kB / 1.097 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007149/0.9072, allocations: 105.3 kB / 1.097 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004916/0.9077, allocations: 302 kB / 1.098 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.179e-05/0.9078, allocations: 59.77 kB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.337e-05/0.9079, allocations: 38.44 kB / 1.098 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008957/0.9088, allocations: 0.4949 MB / 1.098 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.9088, allocations: 5 kB / 1.098 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/0.9089, allocations: 15.47 kB / 1.098 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-05/0.9089, allocations: 32.59 kB / 1.098 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007476/0.9097, allocations: 378.9 kB / 1.099 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002565/0.9122, allocations: 2.201 MB / 1.101 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000713/0.913, allocations: 259.8 kB / 1.101 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003833/0.9134, allocations: 151.7 kB / 1.101 GB, free: 12.49 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/0.9134, allocations: 6.875 kB / 1.101 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.9134, allocations: 37.08 kB / 1.101 GB, free: 12.44 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=19): time 3.687e-06/0.9135, allocations: 7.938 kB / 1.101 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of matching and sorting (n=19): time 0.001622/0.9151, allocations: 0.5724 MB / 1.102 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.9151, allocations: 57.83 kB / 1.102 GB, free: 12.02 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.9154, allocations: 223.5 kB / 1.102 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.9155, allocations: 27.2 kB / 1.102 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.9156, allocations: 215.6 kB / 1.102 GB, free: 11.67 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.735e-05/0.9157, allocations: 65.11 kB / 1.102 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.9158, allocations: 58 kB / 1.102 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.9159, allocations: 334.2 kB / 1.103 GB, free: 11.26 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002503/0.9162, allocations: 93.39 kB / 1.103 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002984/0.9165, allocations: 179.8 kB / 1.103 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005918/0.9171, allocations: 281.6 kB / 1.103 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.9171, allocations: 1.125 kB / 1.103 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009518/0.9181, allocations: 375.7 kB / 1.104 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.9181, allocations: 5.031 kB / 1.104 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.9181, allocations: 3.812 kB / 1.104 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005028/0.9186, allocations: 110.3 kB / 1.104 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000208/0.9189, allocations: 52.52 kB / 1.104 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003421/0.9223, allocations: 3.04 MB / 1.107 GB, free: 7.809 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.9225, allocations: 35.78 kB / 1.107 GB, free: 7.789 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.9226, allocations: 16.16 kB / 1.107 GB, free: 7.781 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003495/0.9229, allocations: 226 kB / 1.107 GB, free: 7.648 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002726/0.9232, allocations: 182.7 kB / 1.107 GB, free: 7.508 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004758/0.9237, allocations: 267 kB / 1.107 GB, free: 7.344 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.344e-06/0.9237, allocations: 1.375 kB / 1.107 GB, free: 7.344 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.000788/0.9245, allocations: 350.7 kB / 1.108 GB, free: 7.199 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.9245, allocations: 5.656 kB / 1.108 GB, free: 7.199 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.9245, allocations: 3.75 kB / 1.108 GB, free: 7.199 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002952/0.9248, allocations: 82.05 kB / 1.108 GB, free: 7.176 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/0.9251, allocations: 53.83 kB / 1.108 GB, free: 7.172 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001963/0.927, allocations: 1.617 MB / 1.109 GB, free: 5.699 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002526/0.9273, allocations: 31.42 kB / 1.11 GB, free: 5.684 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.9273, allocations: 8.781 kB / 1.11 GB, free: 5.684 MB / 0.8731 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 0.0001464/0.9275, allocations: 206.1 kB / 1.11 GB, free: 5.48 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.129e-05/0.9275, allocations: 23.75 kB / 1.11 GB, free: 5.469 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.848e-05/0.9276, allocations: 29.73 kB / 1.11 GB, free: 5.449 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.9276, allocations: 2.5 kB / 1.11 GB, free: 5.449 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.9276, allocations: 8.672 kB / 1.11 GB, free: 5.441 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.9276, allocations: 0.75 kB / 1.11 GB, free: 5.441 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/0.9291, allocations: 0.8268 MB / 1.111 GB, free: 4.883 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.9291, allocations: 0 / 1.111 GB, free: 4.883 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.9292, allocations: 33.39 kB / 1.111 GB, free: 4.879 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003743/0.9296, allocations: 105.3 kB / 1.111 GB, free: 4.844 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.9296, allocations: 5.969 kB / 1.111 GB, free: 4.84 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002865/0.9325, allocations: 3.016 MB / 1.114 GB, free: 1.953 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.9325, allocations: 5.281 kB / 1.114 GB, free: 1.949 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007714/0.9333, allocations: 419.5 kB / 1.114 GB, free: 1.695 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.9334, allocations: 120.4 kB / 1.114 GB, free: 1.578 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.9335, allocations: 2.438 kB / 1.114 GB, free: 1.578 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.9336, allocations: 12.53 kB / 1.114 GB, free: 1.574 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.905e-05/0.9337, allocations: 22.3 kB / 1.114 GB, free: 1.566 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.9337, allocations: 5.844 kB / 1.114 GB, free: 1.566 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000149/0.9339, allocations: 162.3 kB / 1.114 GB, free: 1.465 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9339, allocations: 0 / 1.114 GB, free: 1.465 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006057/0.9345, allocations: 177.2 kB / 1.115 GB, free: 1.414 MB / 0.8731 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.001036/0.9355, allocations: 0.9512 MB / 1.115 GB, free: 0.6289 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001868/0.9374, allocations: 0.7559 MB / 1.116 GB, free: 184 kB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.9374, allocations: 0 / 1.116 GB, free: 184 kB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007902/0.9382, allocations: 376.6 kB / 1.117 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004215/0.9387, allocations: 62.98 kB / 1.117 GB, free: 15.89 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00408/0.9428, allocations: 2.838 MB / 1.119 GB, free: 13.93 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.9432, allocations: 0.8142 MB / 1.12 GB, free: 13.22 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0001906/0.9433, allocations: 59.48 kB / 1.12 GB, free: 13.2 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.9435, allocations: 87.36 kB / 1.12 GB, free: 13.14 MB / 0.8887 GB Notification: Performance of SimCode: time 3.41e-07/0.9435, allocations: 0 / 1.12 GB, free: 13.14 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03434/0.9778, allocations: 7.471 MB / 1.128 GB, free: 12.34 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/12.41, allocations: 6.531 kB / 1.128 GB, free: 12.34 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.fmu > Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat does not exist to compare? outputFormat=mat