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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009435/0.0009434, allocations: 91.38 kB / 15.36 MB, free: 0.7344 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.006702/0.006703, allocations: 169.6 kB / 16.26 MB, free: 6.68 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.32/1.32, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.559/2.559, allocations: 462.6 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004334/0.0004335, allocations: 14.03 kB / 0.9029 GB, free: 36.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2455, allocations: 159.6 MB / 1.059 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.003999/0.2496, allocations: 3.753 MB / 1.062 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00203/0.2516, allocations: 1.574 MB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.2518, allocations: 7.938 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001832/0.252, allocations: 67.42 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004674/0.2524, allocations: 215.1 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004572/0.2529, allocations: 198.5 kB / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000665/0.2536, allocations: 0.7754 MB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004711/0.2541, allocations: 438.4 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002379/0.2543, allocations: 179.3 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003783/0.2547, allocations: 243.1 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.025e-05/0.2548, allocations: 20 kB / 1.066 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002891/0.255, allocations: 195.6 kB / 1.066 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.2552, allocations: 127.6 kB / 1.066 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.2553, allocations: 196.8 kB / 1.067 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004466/0.2558, allocations: 0.5179 MB / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2558, allocations: 0 / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2558, allocations: 0 / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.2558, allocations: 0 / 1.067 GB, free: 12.32 MB / 0.8262 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.0009227/0.2568, allocations: 0.6141 MB / 1.068 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.2568, allocations: 19.91 kB / 1.068 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.661e-05/0.2569, allocations: 78.72 kB / 1.068 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006495/0.2575, allocations: 104.4 kB / 1.068 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.2579, allocations: 303.6 kB / 1.068 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.1e-05/0.2579, allocations: 51.27 kB / 1.068 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/0.258, allocations: 36.38 kB / 1.068 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007837/0.2588, allocations: 0.5085 MB / 1.069 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.2588, allocations: 4 kB / 1.069 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.865e-05/0.2588, allocations: 15.98 kB / 1.069 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.543e-05/0.2589, allocations: 36.97 kB / 1.069 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006641/0.2596, allocations: 395.7 kB / 1.069 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002177/0.2617, allocations: 2.208 MB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000665/0.2624, allocations: 270.6 kB / 1.072 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003507/0.2628, allocations: 160.7 kB / 1.072 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.2628, allocations: 11.98 kB / 1.072 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.2629, allocations: 30.56 kB / 1.072 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 1.332e-06/0.2629, allocations: 4 kB / 1.072 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.00143/0.2643, allocations: 0.5882 MB / 1.072 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.796e-05/0.2643, allocations: 55.41 kB / 1.072 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001933/0.2645, allocations: 228.9 kB / 1.073 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.208e-05/0.2646, allocations: 25.7 kB / 1.073 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.2647, allocations: 207.7 kB / 1.073 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.514e-05/0.2647, allocations: 70.94 kB / 1.073 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.001e-05/0.2648, allocations: 29.7 kB / 1.073 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.851e-05/0.2649, allocations: 334.8 kB / 1.073 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.2651, allocations: 99.94 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00025/0.2654, allocations: 187 kB / 1.074 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004457/0.2658, allocations: 282.5 kB / 1.074 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.2658, allocations: 7.938 kB / 1.074 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008052/0.2666, allocations: 380.6 kB / 1.074 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.907e-05/0.2667, allocations: 165.6 kB / 1.074 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2667, allocations: 8 kB / 1.074 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004413/0.2672, allocations: 105.6 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.2674, allocations: 55.91 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002658/0.2701, allocations: 2.818 MB / 1.077 GB, free: 1.027 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002438/0.2703, allocations: 43.61 kB / 1.077 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.2703, allocations: 12 kB / 1.077 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.368e-06/0.2704, allocations: 4 kB / 1.077 GB, free: 0.9688 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006849/0.271, allocations: 309.3 kB / 1.078 GB, free: 0.6641 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-06/0.2711, allocations: 4.312 kB / 1.078 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002683/0.2713, allocations: 80.78 kB / 1.078 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000207/0.2715, allocations: 59.91 kB / 1.078 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/0.2732, allocations: 1.495 MB / 1.079 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/0.2734, allocations: 35.8 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.2734, allocations: 16 kB / 1.079 GB, free: 14.84 MB / 0.8419 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.0001817/0.2736, allocations: 245 kB / 1.079 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.578e-05/0.2737, allocations: 23.75 kB / 1.079 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.145e-05/0.2738, allocations: 30.17 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.2738, allocations: 7.938 kB / 1.08 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.2738, allocations: 0 / 1.08 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.2738, allocations: 0 / 1.08 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/0.275, allocations: 0.8418 MB / 1.08 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.275, allocations: 4 kB / 1.08 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.2752, allocations: 35.91 kB / 1.08 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003482/0.2755, allocations: 101.7 kB / 1.08 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.2755, allocations: 4 kB / 1.08 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002467/0.278, allocations: 2.822 MB / 1.083 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.278, allocations: 0 / 1.083 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007242/0.2788, allocations: 432.2 kB / 1.084 GB, free: 9.926 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.973e-05/0.2789, allocations: 112.8 kB / 1.084 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.2789, allocations: 0 / 1.084 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.2791, allocations: 23.92 kB / 1.084 GB, free: 9.773 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.943e-05/0.2791, allocations: 19.97 kB / 1.084 GB, free: 9.754 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.2792, allocations: 8 kB / 1.084 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000124/0.2793, allocations: 160.5 kB / 1.084 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2793, allocations: 0 / 1.084 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000524/0.2798, allocations: 175.3 kB / 1.084 GB, free: 9.414 MB / 0.8419 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.0009349/0.2808, allocations: 0.9536 MB / 1.085 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001715/0.2825, allocations: 0.7695 MB / 1.086 GB, free: 7.617 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2825, allocations: 0 / 1.086 GB, free: 7.617 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007151/0.2832, allocations: 377.6 kB / 1.086 GB, free: 7.223 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004042/0.2836, allocations: 56.58 kB / 1.086 GB, free: 7.164 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.2872, allocations: 3.022 MB / 1.089 GB, free: 3.98 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.2875, allocations: 0.8107 MB / 1.09 GB, free: 3.145 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001792/0.2877, allocations: 58.23 kB / 1.09 GB, free: 3.086 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.2878, allocations: 91.39 kB / 1.09 GB, free: 2.996 MB / 0.8419 GB Notification: Performance of SimCode: time 3.01e-07/0.2878, allocations: 0 / 1.09 GB, free: 2.996 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.171/1.459, allocations: 6.633 MB / 1.097 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001647/1.459, allocations: 239 kB / 1.097 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.241/3.7, allocations: 3.938 kB / 1.097 GB, free: 12.3 MB / 0.8575 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=50 --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