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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001072/0.001072, 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.00107/0.00107, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.278/1.278, allocations: 222.9 MB / 240.2 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.538/2.538, allocations: 461.9 MB / 0.7346 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 62.73 kB / 0.8992 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2457, allocations: 157.4 MB / 1.053 GB, free: 8.293 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.005099/0.2508, allocations: 3.27 MB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003214/0.254, allocations: 2.022 MB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001597/0.2542, allocations: 7.938 kB / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008328/0.2551, allocations: 297.8 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004481/0.2555, allocations: 234.9 kB / 1.059 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006466/0.2562, allocations: 287.3 kB / 1.059 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003708/0.2566, allocations: 410.7 kB / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003165/0.2569, allocations: 192.2 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/0.2571, allocations: 167.5 kB / 1.06 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003006/0.2574, allocations: 191.3 kB / 1.06 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.261e-05/0.2575, allocations: 24 kB / 1.06 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003926/0.2578, allocations: 271.5 kB / 1.06 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.258, allocations: 115.7 kB / 1.06 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.2581, allocations: 151.3 kB / 1.06 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004695/0.2586, allocations: 490.8 kB / 1.061 GB, free: 200 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2586, allocations: 0 / 1.061 GB, free: 200 kB / 0.8106 GB Notification: Performance of FrontEnd: time 1.123e-06/0.2586, allocations: 4 kB / 1.061 GB, free: 196 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.012e-06/0.2586, allocations: 4 kB / 1.061 GB, free: 192 kB / 0.8106 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.0009725/0.2596, allocations: 0.5965 MB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.2596, allocations: 8.625 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001141/0.2598, allocations: 62.72 kB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009237/0.2607, allocations: 124.4 kB / 1.062 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.261, allocations: 273.2 kB / 1.062 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.261, allocations: 24.91 kB / 1.062 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.2612, allocations: 36.44 kB / 1.062 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006394/0.2618, allocations: 461 kB / 1.062 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.2618, allocations: 0 / 1.062 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.2619, allocations: 8 kB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001372/0.262, allocations: 44.52 kB / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006869/0.2627, allocations: 365.9 kB / 1.063 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.2652, allocations: 2.21 MB / 1.065 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004077/0.2656, allocations: 270.4 kB / 1.065 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002069/0.2658, allocations: 160.8 kB / 1.065 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.2658, allocations: 7.984 kB / 1.065 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.2659, allocations: 38.5 kB / 1.065 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=22): time 1.272e-06/0.2659, allocations: 0 / 1.065 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.00168/0.2676, allocations: 1.053 MB / 1.066 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.2676, allocations: 63.27 kB / 1.066 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002807/0.2679, allocations: 260.8 kB / 1.067 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.2679, allocations: 29.7 kB / 1.067 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.268, allocations: 184 kB / 1.067 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.649e-05/0.2681, allocations: 82.84 kB / 1.067 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.2682, allocations: 73.59 kB / 1.067 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.2683, allocations: 338.8 kB / 1.067 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002697/0.2686, allocations: 167.9 kB / 1.068 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003133/0.2689, allocations: 237.6 kB / 1.068 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005333/0.2695, allocations: 410.8 kB / 1.068 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.2695, allocations: 7.938 kB / 1.068 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001142/0.2706, allocations: 0.5973 MB / 1.069 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.2707, allocations: 4 kB / 1.069 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.2707, allocations: 4 kB / 1.069 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006329/0.2713, allocations: 188.9 kB / 1.069 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003012/0.2716, allocations: 63.89 kB / 1.069 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002799/0.2744, allocations: 2.504 MB / 1.071 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003577/0.2748, allocations: 19.98 kB / 1.071 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.112e-05/0.2748, allocations: 19.98 kB / 1.071 GB, free: 4.586 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.0001589/0.275, allocations: 157.7 kB / 1.072 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.849e-05/0.2751, allocations: 27.72 kB / 1.072 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005115/0.2756, allocations: 351.8 kB / 1.072 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.2756, allocations: 3.938 kB / 1.072 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.2756, allocations: 0 / 1.072 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2756, allocations: 0 / 1.072 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.2767, allocations: 0.8253 MB / 1.073 GB, free: 3.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-06/0.2767, allocations: 3.938 kB / 1.073 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003714/0.277, allocations: 71.95 kB / 1.073 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.2771, allocations: 8.047 kB / 1.073 GB, free: 3.074 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.2771, allocations: 8 kB / 1.073 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.2771, allocations: 0 / 1.073 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2771, allocations: 0 / 1.073 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000719/0.2778, allocations: 0.6174 MB / 1.073 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.278, allocations: 128.8 kB / 1.074 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.246e-05/0.278, allocations: 8 kB / 1.074 GB, free: 2.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.2782, allocations: 15.98 kB / 1.074 GB, free: 2.262 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.123e-05/0.2783, allocations: 27.91 kB / 1.074 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.2783, allocations: 4.094 kB / 1.074 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002135/0.2785, allocations: 188.5 kB / 1.074 GB, free: 2.047 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2785, allocations: 0 / 1.074 GB, free: 2.047 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003937/0.2789, allocations: 88 kB / 1.074 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.001055/0.28, allocations: 1.169 MB / 1.075 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009613/0.281, allocations: 0.5648 MB / 1.076 GB, free: 184 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.281, allocations: 0 / 1.076 GB, free: 184 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001961/0.2812, allocations: 147.9 kB / 1.076 GB, free: 36 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004599/0.2817, allocations: 58.34 kB / 1.076 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00483/0.2865, allocations: 3.695 MB / 1.079 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.2868, allocations: 0.7951 MB / 1.08 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000231/0.2871, allocations: 78.91 kB / 1.08 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.2872, allocations: 87.41 kB / 1.08 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of SimCode: time 2e-07/0.2872, allocations: 0 / 1.08 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.345/2.632, allocations: 6.81 MB / 1.087 GB, free: 4.496 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.25/17.88, allocations: 17.23 kB / 1.087 GB, free: 4.484 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