Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Electrical_DC_Loads_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_8_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.001123/0.001124, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001501/0.001502, allocations: 198.4 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.542/1.542, allocations: 205.1 MB / 222.4 MB, free: 4.621 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.716/1.716, allocations: 292.3 MB / 0.5489 GB, free: 12.81 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 72.8 kB / 0.6716 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2335, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.005545/0.2391, allocations: 3.837 MB / 0.7872 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002626/0.2417, allocations: 1.773 MB / 0.7889 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.2419, allocations: 4 kB / 0.7889 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001268/0.2432, allocations: 458.2 kB / 0.7894 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0006217/0.2439, allocations: 242.8 kB / 0.7896 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006442/0.2445, allocations: 247.5 kB / 0.7899 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006113/0.2451, allocations: 498.4 kB / 0.7903 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006508/0.2458, allocations: 365.1 kB / 0.7907 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002485/0.246, allocations: 199.3 kB / 0.7909 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005041/0.2466, allocations: 235.1 kB / 0.7911 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.643e-05/0.2466, allocations: 32 kB / 0.7911 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004119/0.2471, allocations: 183.6 kB / 0.7913 GB, free: 5.316 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001481/0.2472, allocations: 135.7 kB / 0.7914 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001876/0.2474, allocations: 179.1 kB / 0.7916 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005888/0.248, allocations: 490.4 kB / 0.7921 GB, free: 4.527 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.248, allocations: 3.938 kB / 0.7921 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.442e-06/0.248, allocations: 0 / 0.7921 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.248, allocations: 0 / 0.7921 GB, free: 4.523 MB / 0.6075 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.001212/0.2493, allocations: 0.655 MB / 0.7927 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.2493, allocations: 8.031 kB / 0.7927 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.498e-05/0.2494, allocations: 78.7 kB / 0.7928 GB, free: 3.727 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005459/0.2499, allocations: 88.34 kB / 0.7929 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003892/0.2503, allocations: 299.3 kB / 0.7932 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/0.2504, allocations: 21.03 kB / 0.7932 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.518e-05/0.2504, allocations: 28.38 kB / 0.7932 GB, free: 3.258 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008344/0.2513, allocations: 497.7 kB / 0.7937 GB, free: 2.738 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.2513, allocations: 3.938 kB / 0.7937 GB, free: 2.734 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.724e-05/0.2514, allocations: 12 kB / 0.7937 GB, free: 2.723 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.852e-05/0.2514, allocations: 36.64 kB / 0.7937 GB, free: 2.688 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007324/0.2522, allocations: 366.3 kB / 0.7941 GB, free: 2.328 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/0.2543, allocations: 2.044 MB / 0.7961 GB, free: 80 kB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000569/0.2549, allocations: 206.9 kB / 0.7963 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003884/0.2553, allocations: 156.8 kB / 0.7964 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.2553, allocations: 4 kB / 0.7964 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.2554, allocations: 38.55 kB / 0.7965 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=18): time 1.854e-06/0.2554, allocations: 3.938 kB / 0.7965 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of matching and sorting (n=18): time 0.0011/0.2565, allocations: 417.7 kB / 0.7969 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.2566, allocations: 59.34 kB / 0.7969 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003014/0.2569, allocations: 266.6 kB / 0.7972 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.19e-05/0.2569, allocations: 29.7 kB / 0.7972 GB, free: 14.85 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.2571, allocations: 215.6 kB / 0.7974 GB, free: 14.63 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 6.853e-05/0.2572, allocations: 63.02 kB / 0.7975 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.2573, allocations: 57.89 kB / 0.7975 GB, free: 14.51 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001857/0.2575, allocations: 338.8 kB / 0.7979 GB, free: 14.17 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002686/0.2577, allocations: 101.8 kB / 0.7979 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003346/0.2581, allocations: 203.6 kB / 0.7981 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005963/0.2587, allocations: 309.5 kB / 0.7984 GB, free: 13.47 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.2587, allocations: 7.938 kB / 0.7984 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007752/0.2595, allocations: 352.7 kB / 0.7988 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.2595, allocations: 8 kB / 0.7988 GB, free: 13.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.2595, allocations: 4.469 kB / 0.7988 GB, free: 13.1 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002184/0.2598, allocations: 36.83 kB / 0.7988 GB, free: 13.06 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.26, allocations: 71.83 kB / 0.7989 GB, free: 12.99 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.2615, allocations: 1.444 MB / 0.8003 GB, free: 11.41 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.2617, allocations: 43.66 kB / 0.8003 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.2618, allocations: 16 kB / 0.8004 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003367/0.2621, allocations: 213.3 kB / 0.8006 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003079/0.2624, allocations: 215.3 kB / 0.8008 GB, free: 10.87 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005302/0.263, allocations: 319.1 kB / 0.8011 GB, free: 10.5 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.743e-06/0.263, allocations: 0 / 0.8011 GB, free: 10.5 MB / 0.6231 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006761/0.2637, allocations: 336.8 kB / 0.8014 GB, free: 10.17 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.2637, allocations: 8 kB / 0.8014 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2637, allocations: 4 kB / 0.8014 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.43e-06/0.2637, allocations: 4 kB / 0.8014 GB, free: 10.15 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002686/0.264, allocations: 72.36 kB / 0.8015 GB, free: 10.08 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.264, allocations: 7.938 kB / 0.8015 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000235/0.2643, allocations: 39.81 kB / 0.8015 GB, free: 10.04 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.2643, allocations: 16 kB / 0.8015 GB, free: 10.02 MB / 0.6231 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 (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001517/0.2644, allocations: 202.5 kB / 0.8017 GB, free: 9.816 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.172e-05/0.2645, allocations: 23.72 kB / 0.8018 GB, free: 9.793 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.336e-05/0.2646, allocations: 34.17 kB / 0.8018 GB, free: 9.762 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.2646, allocations: 48 / 0.8018 GB, free: 9.762 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.417e-05/0.2646, allocations: 3.984 kB / 0.8018 GB, free: 9.758 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.2646, allocations: 11.94 kB / 0.8018 GB, free: 9.746 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001174/0.2658, allocations: 0.7499 MB / 0.8025 GB, free: 8.918 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2658, allocations: 0 / 0.8025 GB, free: 8.918 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001796/0.266, allocations: 35.97 kB / 0.8026 GB, free: 8.883 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001057/0.2661, allocations: 28.78 kB / 0.8026 GB, free: 8.852 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.2661, allocations: 4 kB / 0.8026 GB, free: 8.848 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/0.2672, allocations: 1.422 MB / 0.804 GB, free: 7.281 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.2672, allocations: 7.969 kB / 0.804 GB, free: 7.273 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006062/0.2678, allocations: 361.7 kB / 0.8043 GB, free: 6.895 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.2679, allocations: 116.8 kB / 0.8045 GB, free: 6.762 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.986e-05/0.268, allocations: 4 kB / 0.8045 GB, free: 6.758 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.2681, allocations: 15.98 kB / 0.8045 GB, free: 6.742 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.914e-05/0.2682, allocations: 27.84 kB / 0.8045 GB, free: 6.715 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.2682, allocations: 8 kB / 0.8045 GB, free: 6.707 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001646/0.2684, allocations: 182 kB / 0.8047 GB, free: 6.531 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.6e-07/0.2684, allocations: 4 kB / 0.8047 GB, free: 6.527 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006015/0.269, allocations: 147.4 kB / 0.8048 GB, free: 6.383 MB / 0.6231 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 (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008973/0.2699, allocations: 0.902 MB / 0.8057 GB, free: 5.441 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001043/0.271, allocations: 0.4948 MB / 0.8062 GB, free: 4.938 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.271, allocations: 0 / 0.8062 GB, free: 4.938 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000339/0.2713, allocations: 226.7 kB / 0.8064 GB, free: 4.703 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004778/0.2718, allocations: 68.08 kB / 0.8065 GB, free: 4.641 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003642/0.2755, allocations: 2.884 MB / 0.8093 GB, free: 1.574 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.2758, allocations: 0.8073 MB / 0.8101 GB, free: 0.7422 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002236/0.276, allocations: 78.28 kB / 0.8102 GB, free: 0.668 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.2762, allocations: 91.34 kB / 0.8102 GB, free: 0.5781 MB / 0.6231 GB Notification: Performance of SimCode: time 3.1e-07/0.2762, allocations: 0 / 0.8102 GB, free: 0.5781 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.026/0.3022, allocations: 6.214 MB / 0.8163 GB, free: 10.5 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.55, allocations: 3.938 kB / 0.8163 GB, free: 10.5 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_DC_Loads_Examples_VariableLoad.fmu > Buildings_8_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1)