Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="Buildings_10_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.007772/0.007772, allocations: 99.42 kB / 15.73 MB, free: 6.039 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.002179/0.002179, allocations: 202 kB / 16.68 MB, free: 5.965 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.7/2.7, allocations: 437 MB / 0.7105 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 71.89 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2712, allocations: 151.6 MB / 1.166 GB, free: 7.305 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004972/0.2762, allocations: 3.282 MB / 1.169 GB, free: 4 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003232/0.2794, allocations: 1.995 MB / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.2796, allocations: 7.938 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0009072/0.2805, allocations: 285.4 kB / 1.172 GB, free: 1.707 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0004743/0.281, allocations: 242.9 kB / 1.172 GB, free: 1.469 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006099/0.2816, allocations: 283.3 kB / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004791/0.2821, allocations: 410.7 kB / 1.172 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003563/0.2824, allocations: 204.5 kB / 1.173 GB, free: 0.5859 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.2827, allocations: 163.4 kB / 1.173 GB, free: 436 kB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003585/0.283, allocations: 199.3 kB / 1.173 GB, free: 236 kB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.73e-05/0.2831, allocations: 27.98 kB / 1.173 GB, free: 208 kB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004538/0.2836, allocations: 263.7 kB / 1.173 GB, free: 15.94 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.2837, allocations: 119.6 kB / 1.173 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001747/0.2839, allocations: 151.2 kB / 1.174 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006217/0.2845, allocations: 494.2 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.2845, allocations: 0 / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2845, allocations: 0 / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.2846, allocations: 0 / 1.174 GB, free: 15.2 MB / 0.9356 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.001092/0.2857, allocations: 0.6075 MB / 1.175 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.2857, allocations: 12.03 kB / 1.175 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.214e-05/0.2858, allocations: 66.7 kB / 1.175 GB, free: 14.45 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009909/0.2868, allocations: 120.6 kB / 1.175 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003795/0.2872, allocations: 285.2 kB / 1.175 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.401e-05/0.2872, allocations: 20.94 kB / 1.175 GB, free: 14 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.2873, allocations: 44.42 kB / 1.175 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007747/0.2881, allocations: 453.1 kB / 1.176 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.2882, allocations: 0 / 1.176 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.241e-05/0.2882, allocations: 8 kB / 1.176 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001455/0.2884, allocations: 40.53 kB / 1.176 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006909/0.2891, allocations: 365.9 kB / 1.176 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00283/0.2919, allocations: 2.222 MB / 1.178 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004719/0.2924, allocations: 274.3 kB / 1.178 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.2926, allocations: 160.8 kB / 1.179 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.2927, allocations: 4 kB / 1.179 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.2927, allocations: 34.56 kB / 1.179 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=22): time 1.352e-06/0.2927, allocations: 4 kB / 1.179 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23): time 0.001931/0.2947, allocations: 1.055 MB / 1.18 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.602e-05/0.2947, allocations: 55.41 kB / 1.18 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003445/0.2951, allocations: 260.9 kB / 1.18 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.2951, allocations: 29.7 kB / 1.18 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.2952, allocations: 188.4 kB / 1.18 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 8.201e-05/0.2953, allocations: 95.2 kB / 1.18 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.2955, allocations: 77.62 kB / 1.18 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000171/0.2957, allocations: 338.8 kB / 1.181 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003144/0.296, allocations: 155.9 kB / 1.181 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000382/0.2964, allocations: 245.5 kB / 1.181 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006382/0.297, allocations: 410.8 kB / 1.181 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.297, allocations: 7.875 kB / 1.181 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001286/0.2983, allocations: 0.6004 MB / 1.182 GB, free: 6.496 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.2984, allocations: 7.984 kB / 1.182 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.2984, allocations: 4 kB / 1.182 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007116/0.2991, allocations: 188.9 kB / 1.182 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003354/0.2994, allocations: 59.89 kB / 1.182 GB, free: 6.238 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003239/0.3027, allocations: 2.496 MB / 1.185 GB, free: 3.602 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003873/0.3031, allocations: 27.97 kB / 1.185 GB, free: 3.574 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.197e-05/0.3031, allocations: 12 kB / 1.185 GB, free: 3.562 MB / 0.9356 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.0002025/0.3033, allocations: 173.8 kB / 1.185 GB, free: 3.383 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.464e-05/0.3034, allocations: 23.86 kB / 1.185 GB, free: 3.359 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006236/0.304, allocations: 352.9 kB / 1.185 GB, free: 3.008 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.304, allocations: 4 kB / 1.185 GB, free: 3.004 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.3041, allocations: 0 / 1.185 GB, free: 3.004 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3041, allocations: 3.984 kB / 1.185 GB, free: 3 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.3052, allocations: 0.8179 MB / 1.186 GB, free: 2.121 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3052, allocations: 4 kB / 1.186 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004202/0.3057, allocations: 75.88 kB / 1.186 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.3057, allocations: 4 kB / 1.186 GB, free: 2.039 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.3057, allocations: 8 kB / 1.186 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3057, allocations: 0 / 1.186 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3057, allocations: 0 / 1.186 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008377/0.3066, allocations: 0.6191 MB / 1.187 GB, free: 1.391 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001432/0.3067, allocations: 132.9 kB / 1.187 GB, free: 1.242 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.061e-05/0.3068, allocations: 11.98 kB / 1.187 GB, free: 1.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.307, allocations: 15.92 kB / 1.187 GB, free: 1.215 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.342e-05/0.3071, allocations: 23.86 kB / 1.187 GB, free: 1.191 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.3071, allocations: 4 kB / 1.187 GB, free: 1.188 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002509/0.3074, allocations: 188.5 kB / 1.187 GB, free: 1 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3074, allocations: 0 / 1.187 GB, free: 1 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004337/0.3078, allocations: 92 kB / 1.187 GB, free: 0.9102 MB / 0.9356 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.001206/0.309, allocations: 1.154 MB / 1.188 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001004/0.31, allocations: 0.5373 MB / 1.189 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3101, allocations: 0 / 1.189 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002358/0.3103, allocations: 152.4 kB / 1.189 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000453/0.3108, allocations: 60.33 kB / 1.189 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005591/0.3164, allocations: 3.719 MB / 1.193 GB, free: 11.1 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004507/0.3168, allocations: 0.7912 MB / 1.193 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002449/0.3171, allocations: 78.91 kB / 1.194 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.3173, allocations: 83.41 kB / 1.194 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of SimCode: time 2.91e-07/0.3173, allocations: 0 / 1.194 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03433/0.3516, allocations: 6.926 MB / 1.2 GB, free: 3.359 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.41, allocations: 10.3 kB / 1.2 GB, free: 3.352 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches