Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",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.001199/0.001199, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001217/0.001217, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.221/1.221, allocations: 222.9 MB / 239.8 MB, free: 4.645 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.408/2.408, allocations: 461.9 MB / 0.7342 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 61.27 kB / 0.8985 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2338, allocations: 157.4 MB / 1.052 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004549/0.2384, allocations: 3.311 MB / 1.055 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002997/0.2414, allocations: 2.037 MB / 1.057 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.2416, allocations: 7.938 kB / 1.057 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000792/0.2424, allocations: 271.1 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004756/0.2429, allocations: 215.2 kB / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005978/0.2435, allocations: 262.5 kB / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005337/0.244, allocations: 0.5688 MB / 1.059 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003658/0.2444, allocations: 200.8 kB / 1.059 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/0.2446, allocations: 143.5 kB / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003294/0.2449, allocations: 199.3 kB / 1.059 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.243e-05/0.245, allocations: 16 kB / 1.059 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004586/0.2454, allocations: 311.3 kB / 1.06 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001266/0.2456, allocations: 115.7 kB / 1.06 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001457/0.2457, allocations: 143.2 kB / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005439/0.2463, allocations: 494.8 kB / 1.06 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.2463, allocations: 0 / 1.06 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.91e-07/0.2463, allocations: 0 / 1.06 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.545e-06/0.2463, allocations: 0 / 1.06 GB, free: 15.99 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001006/0.2473, allocations: 0.6003 MB / 1.061 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.2474, allocations: 15.97 kB / 1.061 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.156e-05/0.2475, allocations: 66.7 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009107/0.2484, allocations: 116.4 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003174/0.2487, allocations: 280.4 kB / 1.061 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.2487, allocations: 16.94 kB / 1.061 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.2488, allocations: 40.28 kB / 1.061 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006517/0.2495, allocations: 453.1 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.2495, allocations: 0 / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.513e-05/0.2496, allocations: 8 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000132/0.2497, allocations: 40.53 kB / 1.062 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005923/0.2503, allocations: 365.9 kB / 1.062 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/0.2527, allocations: 2.222 MB / 1.064 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004062/0.2531, allocations: 274.4 kB / 1.065 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/0.2533, allocations: 156.8 kB / 1.065 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.2534, allocations: 4 kB / 1.065 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.2534, allocations: 34.94 kB / 1.065 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=22): time 1.312e-06/0.2534, allocations: 0 / 1.065 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.001689/0.2551, allocations: 1.058 MB / 1.066 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.262e-05/0.2551, allocations: 59.27 kB / 1.066 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002953/0.2554, allocations: 256.8 kB / 1.066 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.2555, allocations: 29.7 kB / 1.066 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.2556, allocations: 184 kB / 1.066 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.591e-05/0.2556, allocations: 90.83 kB / 1.066 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.2558, allocations: 73.59 kB / 1.066 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.2559, allocations: 342.8 kB / 1.067 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.2562, allocations: 151.9 kB / 1.067 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003219/0.2565, allocations: 253.5 kB / 1.067 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005449/0.2571, allocations: 406.8 kB / 1.068 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2571, allocations: 3.984 kB / 1.068 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001138/0.2582, allocations: 0.5971 MB / 1.068 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.2582, allocations: 4 kB / 1.068 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.2582, allocations: 8.312 kB / 1.068 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006567/0.2589, allocations: 188.6 kB / 1.068 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002921/0.2592, allocations: 67.83 kB / 1.068 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002495/0.2617, allocations: 2.311 MB / 1.071 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003644/0.2621, allocations: 23.97 kB / 1.071 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.2621, allocations: 16.06 kB / 1.071 GB, free: 4.582 MB / 0.8262 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 (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): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001466/0.2623, allocations: 161.8 kB / 1.071 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.582e-05/0.2624, allocations: 27.66 kB / 1.071 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005007/0.2629, allocations: 351.6 kB / 1.071 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2629, allocations: 4 kB / 1.071 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.2629, allocations: 0 / 1.071 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2629, allocations: 0 / 1.071 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009873/0.2639, allocations: 0.8257 MB / 1.072 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2639, allocations: 0 / 1.072 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003779/0.2643, allocations: 71.88 kB / 1.072 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.2643, allocations: 4 kB / 1.072 GB, free: 3.074 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.2643, allocations: 11.98 kB / 1.072 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2643, allocations: 0 / 1.072 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2643, allocations: 0 / 1.072 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000689/0.265, allocations: 0.617 MB / 1.073 GB, free: 2.426 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.2651, allocations: 128.8 kB / 1.073 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.407e-05/0.2652, allocations: 8 kB / 1.073 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002353/0.2654, allocations: 15.98 kB / 1.073 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.749e-05/0.2655, allocations: 15.92 kB / 1.073 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.2655, allocations: 12 kB / 1.073 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002103/0.2657, allocations: 192.4 kB / 1.073 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2657, allocations: 0 / 1.073 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003822/0.2661, allocations: 84 kB / 1.073 GB, free: 1.961 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[2]) * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009876/0.2671, allocations: 1.159 MB / 1.074 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008538/0.268, allocations: 0.5339 MB / 1.075 GB, free: 224 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.268, allocations: 0 / 1.075 GB, free: 224 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001858/0.2682, allocations: 154.2 kB / 1.075 GB, free: 72 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004166/0.2686, allocations: 56.38 kB / 1.075 GB, free: 16 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004876/0.2735, allocations: 3.794 MB / 1.079 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.2738, allocations: 0.7911 MB / 1.08 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002288/0.2741, allocations: 82.91 kB / 1.08 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.2742, allocations: 83.41 kB / 1.08 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of SimCode: time 3.3e-07/0.2742, allocations: 0 / 1.08 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01648/0.2907, allocations: 6.547 MB / 1.086 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000216/0.2909, allocations: 239.3 kB / 1.086 GB, free: 4.461 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/2.04, allocations: 0 / 1.086 GB, free: 4.461 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches