Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.VariableLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad",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.0009434/0.0009434, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.00113/0.00113, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.2 MB / 240 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.54/2.54, allocations: 409.4 MB / 0.684 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003821/0.0003823, allocations: 12 kB / 0.8378 GB, free: 6.539 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7687/0.7691, allocations: 146.8 MB / 0.9811 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.004398/0.7735, allocations: 3.377 MB / 0.9844 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002928/0.7765, allocations: 1.657 MB / 0.986 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001855/0.7767, allocations: 8 kB / 0.9861 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000254/0.777, allocations: 63.48 kB / 0.9861 GB, free: 1.152 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005373/0.7775, allocations: 183.1 kB / 0.9863 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006475/0.7782, allocations: 195.7 kB / 0.9865 GB, free: 0.7812 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007638/0.7789, allocations: 0.5684 MB / 0.987 GB, free: 216 kB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004646/0.7794, allocations: 340.3 kB / 0.9874 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002122/0.7796, allocations: 155.3 kB / 0.9875 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003837/0.78, allocations: 223.2 kB / 0.9877 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.7801, allocations: 16 kB / 0.9877 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002227/0.7803, allocations: 91.81 kB / 0.9878 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.7804, allocations: 103.8 kB / 0.9879 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 8.088e-05/0.7805, allocations: 85.52 kB / 0.988 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0004156/0.781, allocations: 365.3 kB / 0.9883 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.781, allocations: 3.938 kB / 0.9883 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.693e-06/0.781, allocations: 0 / 0.9883 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.781, allocations: 0 / 0.9883 GB, free: 14.82 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001097/0.7821, allocations: 0.6057 MB / 0.9889 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.7821, allocations: 8.031 kB / 0.9889 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.318e-05/0.7822, allocations: 78.45 kB / 0.989 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005292/0.7828, allocations: 87.47 kB / 0.9891 GB, free: 13.99 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003948/0.7832, allocations: 290.4 kB / 0.9894 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.557e-05/0.7832, allocations: 20.66 kB / 0.9894 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.856e-05/0.7833, allocations: 31.95 kB / 0.9894 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008776/0.7842, allocations: 489.8 kB / 0.9899 GB, free: 13.1 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.7842, allocations: 7.938 kB / 0.9899 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.954e-05/0.7842, allocations: 12 kB / 0.9899 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.779e-05/0.7843, allocations: 36.62 kB / 0.99 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007941/0.7851, allocations: 386.3 kB / 0.9903 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.7875, allocations: 2.048 MB / 0.9923 GB, free: 10.42 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005486/0.788, allocations: 222.6 kB / 0.9925 GB, free: 10.19 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003774/0.7884, allocations: 172.8 kB / 0.9927 GB, free: 10.02 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.517e-05/0.7885, allocations: 0 / 0.9927 GB, free: 10.02 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.7885, allocations: 46.52 kB / 0.9927 GB, free: 9.965 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=18): time 3.026e-06/0.7885, allocations: 0 / 0.9927 GB, free: 9.965 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18): time 0.001072/0.7896, allocations: 452.5 kB / 0.9932 GB, free: 9.496 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/0.7896, allocations: 59.41 kB / 0.9932 GB, free: 9.426 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003066/0.79, allocations: 254.6 kB / 0.9935 GB, free: 9.172 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.79, allocations: 33.7 kB / 0.9935 GB, free: 9.133 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/0.7902, allocations: 211.7 kB / 0.9937 GB, free: 8.922 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 6.548e-05/0.7903, allocations: 63.09 kB / 0.9938 GB, free: 8.859 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.556e-05/0.7903, allocations: 8 kB / 0.9938 GB, free: 8.852 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.7904, allocations: 330.8 kB / 0.9941 GB, free: 8.52 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002365/0.7907, allocations: 96.5 kB / 0.9942 GB, free: 8.422 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003335/0.791, allocations: 223.5 kB / 0.9944 GB, free: 8.152 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.7913, allocations: 133 kB / 0.9945 GB, free: 8.023 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.7913, allocations: 4 kB / 0.9945 GB, free: 8.02 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007385/0.7921, allocations: 375.3 kB / 0.9949 GB, free: 7.645 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.7922, allocations: 195.2 kB / 0.9951 GB, free: 7.402 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.7922, allocations: 4 kB / 0.9951 GB, free: 7.398 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002157/0.7925, allocations: 32.84 kB / 0.9951 GB, free: 7.363 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002645/0.7927, allocations: 75.89 kB / 0.9952 GB, free: 7.289 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/0.7941, allocations: 1.34 MB / 0.9965 GB, free: 5.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002494/0.7943, allocations: 51.61 kB / 0.9965 GB, free: 5.77 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.7944, allocations: 12 kB / 0.9966 GB, free: 5.758 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 7.384e-06/0.7944, allocations: 4 kB / 0.9966 GB, free: 5.754 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005751/0.795, allocations: 301.9 kB / 0.9968 GB, free: 5.461 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.795, allocations: 4 kB / 0.9968 GB, free: 5.457 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.564e-06/0.795, allocations: 8 kB / 0.9969 GB, free: 5.449 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002509/0.7952, allocations: 76.08 kB / 0.9969 GB, free: 5.375 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.7953, allocations: 11.94 kB / 0.9969 GB, free: 5.363 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/0.7955, allocations: 47.67 kB / 0.997 GB, free: 5.316 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.7955, allocations: 15.98 kB / 0.997 GB, free: 5.301 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002357/0.7957, allocations: 241 kB / 0.9972 GB, free: 5.055 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.217e-05/0.7958, allocations: 35.66 kB / 0.9973 GB, free: 5.02 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.161e-05/0.7959, allocations: 30.19 kB / 0.9973 GB, free: 4.992 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/0.7959, allocations: 4 kB / 0.9973 GB, free: 4.988 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.7959, allocations: 0 / 0.9973 GB, free: 4.988 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.7959, allocations: 7.969 kB / 0.9973 GB, free: 4.98 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.7971, allocations: 0.7694 MB / 0.9981 GB, free: 4.133 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.7971, allocations: 0 / 0.9981 GB, free: 4.133 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001784/0.7973, allocations: 44.03 kB / 0.9981 GB, free: 4.09 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001057/0.7974, allocations: 32.83 kB / 0.9981 GB, free: 4.055 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.7974, allocations: 4 kB / 0.9981 GB, free: 4.051 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.7985, allocations: 1.308 MB / 0.9994 GB, free: 2.609 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.7985, allocations: 7.969 kB / 0.9994 GB, free: 2.602 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006256/0.7991, allocations: 393.6 kB / 0.9998 GB, free: 2.191 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/0.7992, allocations: 116.7 kB / 0.9999 GB, free: 2.059 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.828e-05/0.7993, allocations: 4 kB / 0.9999 GB, free: 2.055 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.7995, allocations: 23.98 kB / 0.9999 GB, free: 2.031 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/0.7995, allocations: 15.97 kB / 0.9999 GB, free: 2.016 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.7995, allocations: 12 kB / 1 GB, free: 2.004 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001691/0.7997, allocations: 185.9 kB / 1 GB, free: 1.82 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7997, allocations: 0 / 1 GB, free: 1.82 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005679/0.8003, allocations: 143.5 kB / 1 GB, free: 1.68 MB / 0.7481 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 (18): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.000912/0.8012, allocations: 0.9225 MB / 1.001 GB, free: 0.7227 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001049/0.8023, allocations: 0.506 MB / 1.002 GB, free: 212 kB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.8023, allocations: 3.938 kB / 1.002 GB, free: 208 kB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003659/0.8027, allocations: 231.3 kB / 1.002 GB, free: 15.96 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004808/0.8032, allocations: 66.92 kB / 1.002 GB, free: 15.9 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.8058, allocations: 1.695 MB / 1.004 GB, free: 14.09 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003688/0.8062, allocations: 0.8074 MB / 1.004 GB, free: 13.26 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002331/0.8064, allocations: 66.23 kB / 1.004 GB, free: 13.19 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.8065, allocations: 87.41 kB / 1.005 GB, free: 13.11 MB / 0.7637 GB Notification: Performance of SimCode: time 3.61e-07/0.8066, allocations: 0 / 1.005 GB, free: 13.11 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01852/0.8251, allocations: 5.677 MB / 1.01 GB, free: 7.641 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/0.8253, allocations: 218.2 kB / 1.01 GB, free: 7.402 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.852/2.677, allocations: 0 / 1.01 GB, free: 7.402 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_VariableLoad.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat does not exist to compare? outputFormat=mat