Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Conversion.Examples.ACACConverter,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Conversion_Examples_ACACConverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Conversion_Examples_ACACConverter",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.01258/0.01258, allocations: 97.06 kB / 15.73 MB, free: 6.004 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.001619/0.001618, allocations: 194.9 kB / 16.67 MB, free: 5.934 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.534/2.534, allocations: 472.7 MB / 0.7453 GB, free: 416 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 67.89 kB / 1.069 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7955/0.7968, allocations: 159.9 MB / 1.225 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter): time 0.00389/0.8007, allocations: 2.759 MB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003216/0.8039, allocations: 2.08 MB / 1.23 GB, free: 8.574 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.8041, allocations: 4 kB / 1.23 GB, free: 8.57 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0007327/0.8048, allocations: 234.5 kB / 1.23 GB, free: 8.344 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0004166/0.8053, allocations: 215.1 kB / 1.23 GB, free: 8.133 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005599/0.8058, allocations: 283.2 kB / 1.231 GB, free: 7.855 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003051/0.8061, allocations: 319 kB / 1.231 GB, free: 7.543 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002649/0.8064, allocations: 157.8 kB / 1.231 GB, free: 7.391 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.8066, allocations: 127.6 kB / 1.231 GB, free: 7.266 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002581/0.8068, allocations: 159.4 kB / 1.231 GB, free: 7.109 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.28e-05/0.8069, allocations: 20 kB / 1.231 GB, free: 7.09 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005268/0.8074, allocations: 415.2 kB / 1.232 GB, free: 6.684 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.679e-05/0.8075, allocations: 99.69 kB / 1.232 GB, free: 6.586 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.8076, allocations: 111.5 kB / 1.232 GB, free: 6.477 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005263/0.8082, allocations: 490.1 kB / 1.232 GB, free: 6 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.8082, allocations: 3.938 kB / 1.232 GB, free: 5.996 MB / 0.9512 GB Notification: Performance of FrontEnd: time 8.92e-07/0.8082, allocations: 0 / 1.232 GB, free: 5.996 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.551e-06/0.8082, allocations: 0 / 1.232 GB, free: 5.996 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007815/0.809, allocations: 0.5686 MB / 1.233 GB, free: 5.379 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.809, allocations: 12.03 kB / 1.233 GB, free: 5.367 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.638e-05/0.8091, allocations: 54.73 kB / 1.233 GB, free: 5.305 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008947/0.81, allocations: 132.6 kB / 1.233 GB, free: 5.176 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.8103, allocations: 264.5 kB / 1.233 GB, free: 4.879 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.8103, allocations: 12.81 kB / 1.233 GB, free: 4.867 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.844e-05/0.8104, allocations: 27.92 kB / 1.233 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006418/0.811, allocations: 389.9 kB / 1.234 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.811, allocations: 3.938 kB / 1.234 GB, free: 4.422 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.076e-05/0.8111, allocations: 11.98 kB / 1.234 GB, free: 4.41 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.741e-05/0.8111, allocations: 23.98 kB / 1.234 GB, free: 4.387 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00069/0.8118, allocations: 375.7 kB / 1.234 GB, free: 4.02 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001801/0.8136, allocations: 1.749 MB / 1.236 GB, free: 2.125 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006967/0.8143, allocations: 349 kB / 1.236 GB, free: 1.766 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003279/0.8147, allocations: 189.6 kB / 1.236 GB, free: 1.574 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001461/0.8148, allocations: 93.11 kB / 1.237 GB, free: 1.465 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.8149, allocations: 38.5 kB / 1.237 GB, free: 1.418 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=25): time 1.593e-06/0.8149, allocations: 0 / 1.237 GB, free: 1.418 MB / 0.9512 GB Notification: Performance of matching and sorting (n=35): time 0.008273/0.8231, allocations: 2.056 MB / 1.239 GB, free: 15.35 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.8232, allocations: 81.11 kB / 1.239 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001499/0.8234, allocations: 174.7 kB / 1.239 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.822e-05/0.8234, allocations: 33.7 kB / 1.239 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.045e-05/0.8235, allocations: 152.6 kB / 1.239 GB, free: 14.88 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.014e-05/0.8236, allocations: 130.9 kB / 1.239 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001426/0.8238, allocations: 73.69 kB / 1.239 GB, free: 14.67 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.8239, allocations: 338.8 kB / 1.24 GB, free: 14.33 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005235/0.8244, allocations: 264.7 kB / 1.24 GB, free: 14.07 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005574/0.825, allocations: 345.4 kB / 1.24 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.8261, allocations: 0.6271 MB / 1.241 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.8261, allocations: 3.938 kB / 1.241 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001294/0.8274, allocations: 0.663 MB / 1.241 GB, free: 12.37 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.8274, allocations: 5.875 kB / 1.241 GB, free: 12.37 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.8274, allocations: 11.92 kB / 1.241 GB, free: 12.36 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.8275, allocations: 8.281 kB / 1.241 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009041/0.8284, allocations: 155.7 kB / 1.242 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.8284, allocations: 4 kB / 1.242 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004267/0.8288, allocations: 51.92 kB / 1.242 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.195e-05/0.8289, allocations: 19.98 kB / 1.242 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006007/0.8295, allocations: 379.9 kB / 1.242 GB, free: 11.75 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005338/0.83, allocations: 325.3 kB / 1.242 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00104/0.8311, allocations: 0.6019 MB / 1.243 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.156e-06/0.8311, allocations: 3.938 kB / 1.243 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of matching and sorting (n=44) (initialization_lambda0): time 0.00121/0.8323, allocations: 0.6299 MB / 1.243 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/0.8323, allocations: 4 kB / 1.244 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.8323, allocations: 4 kB / 1.244 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.863e-06/0.8323, allocations: 7.984 kB / 1.244 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008318/0.8332, allocations: 148 kB / 1.244 GB, free: 9.961 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.8332, allocations: 11.92 kB / 1.244 GB, free: 9.949 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004148/0.8336, allocations: 51.94 kB / 1.244 GB, free: 9.898 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.7e-05/0.8337, allocations: 15.98 kB / 1.244 GB, free: 9.883 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (44): * Single equations (assignments): 44 * 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 prepare postOptimizeDAE: time 0.0001495/0.8338, allocations: 201.5 kB / 1.244 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.252e-05/0.8339, allocations: 23.86 kB / 1.244 GB, free: 9.656 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001345/0.8353, allocations: 0.6883 MB / 1.245 GB, free: 8.953 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.8353, allocations: 4 kB / 1.245 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.8353, allocations: 0 / 1.245 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.8353, allocations: 0 / 1.245 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/0.8373, allocations: 1.371 MB / 1.246 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.778e-06/0.8373, allocations: 0 / 1.246 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005427/0.8379, allocations: 123.8 kB / 1.246 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-05/0.8379, allocations: 8 kB / 1.246 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/0.8379, allocations: 15.88 kB / 1.246 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.8379, allocations: 4 kB / 1.246 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.8379, allocations: 7.938 kB / 1.246 GB, free: 7.324 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009632/0.8389, allocations: 0.7125 MB / 1.247 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.8391, allocations: 140.9 kB / 1.247 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.967e-05/0.8391, allocations: 11.94 kB / 1.247 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003456/0.8395, allocations: 39.94 kB / 1.247 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.58e-05/0.8396, allocations: 35.84 kB / 1.247 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.64e-05/0.8396, allocations: 16 kB / 1.247 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001626/0.8398, allocations: 148.1 kB / 1.247 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8398, allocations: 0 / 1.247 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0006343/0.8404, allocations: 143.9 kB / 1.247 GB, free: 6.031 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (37): * Single equations (assignments): 37 * 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.001318/0.8417, allocations: 1.287 MB / 1.249 GB, free: 4.691 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001651/0.8434, allocations: 0.8667 MB / 1.249 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.8434, allocations: 0.75 kB / 1.249 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004177/0.8438, allocations: 259.8 kB / 1.25 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004992/0.8443, allocations: 39.97 kB / 1.25 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00518/0.8495, allocations: 3.904 MB / 1.254 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.8498, allocations: 0.7799 MB / 1.254 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0004925/0.8503, allocations: 178.8 kB / 1.254 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002054/0.8506, allocations: 87.39 kB / 1.255 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of SimCode: time 4.31e-07/0.8506, allocations: 0 / 1.255 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02305/0.8736, allocations: 7.729 MB / 1.262 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.447/8.32, allocations: 11.92 kB / 1.262 GB, free: 6.82 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_AC_OnePhase_Conversion_Examples_ACACConverter.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Conversion_Examples_ACACConverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches