Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.TestImpedance,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",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.0007982/0.0007983, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.0009575/0.0009575, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.2 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.627/2.627, allocations: 409.4 MB / 0.684 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003523/0.0003523, allocations: 8 kB / 0.8378 GB, free: 6.488 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8193/0.8197, allocations: 146.8 MB / 0.9811 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.004397/0.8242, allocations: 4.243 MB / 0.9853 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00343/0.8276, allocations: 2.328 MB / 0.9876 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003537/0.828, allocations: 19.81 kB / 0.9876 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.0002781/0.8283, allocations: 87.22 kB / 0.9877 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.0008665/0.8292, allocations: 346.1 kB / 0.988 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007272/0.8299, allocations: 282.1 kB / 0.9883 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.0009465/0.8309, allocations: 0.9641 MB / 0.9892 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006969/0.8316, allocations: 416.3 kB / 0.9896 GB, free: 13.55 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00041/0.832, allocations: 294.6 kB / 0.9899 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003903/0.8324, allocations: 318.6 kB / 0.9902 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 4.684e-05/0.8324, allocations: 20 kB / 0.9902 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000442/0.8329, allocations: 199.7 kB / 0.9904 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001501/0.8331, allocations: 159.5 kB / 0.9905 GB, free: 12.58 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.8332, allocations: 137.4 kB / 0.9907 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0006195/0.8338, allocations: 0.6411 MB / 0.9913 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.8338, allocations: 3.938 kB / 0.9913 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.764e-06/0.8338, allocations: 0 / 0.9913 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 8.937e-06/0.8338, allocations: 0 / 0.9913 GB, free: 11.79 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001124/0.835, allocations: 0.8334 MB / 0.9921 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.835, allocations: 11.97 kB / 0.9921 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.8e-05/0.8351, allocations: 90.52 kB / 0.9922 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001159/0.8363, allocations: 195 kB / 0.9924 GB, free: 10.61 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006162/0.8369, allocations: 489.2 kB / 0.9929 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.8369, allocations: 32.98 kB / 0.9929 GB, free: 10.06 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.179e-05/0.837, allocations: 51.95 kB / 0.993 GB, free: 10.01 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009783/0.838, allocations: 0.8367 MB / 0.9938 GB, free: 9.039 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.838, allocations: 3.938 kB / 0.9938 GB, free: 9.035 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.702e-05/0.8381, allocations: 27.98 kB / 0.9938 GB, free: 9.008 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.833e-05/0.8382, allocations: 64.95 kB / 0.9939 GB, free: 8.941 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007718/0.839, allocations: 0.5616 MB / 0.9944 GB, free: 8.383 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003927/0.8429, allocations: 5.654 MB / 0.9999 GB, free: 2.332 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006251/0.8435, allocations: 450.2 kB / 1 GB, free: 1.883 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003557/0.8439, allocations: 232.7 kB / 1.001 GB, free: 1.652 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 4.233e-05/0.844, allocations: 4 kB / 1.001 GB, free: 1.648 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.844, allocations: 42.48 kB / 1.001 GB, free: 1.598 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=32): time 4.809e-06/0.844, allocations: 0 / 1.001 GB, free: 1.598 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33): time 0.002544/0.8466, allocations: 1.494 MB / 1.002 GB, free: 15.99 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.865e-05/0.8466, allocations: 55.69 kB / 1.002 GB, free: 15.92 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004891/0.8471, allocations: 494.9 kB / 1.003 GB, free: 15.43 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.783e-05/0.8472, allocations: 33.7 kB / 1.003 GB, free: 15.39 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002349/0.8474, allocations: 362.7 kB / 1.003 GB, free: 15.03 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 9.125e-05/0.8475, allocations: 122.3 kB / 1.003 GB, free: 14.91 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.475e-05/0.8475, allocations: 16 kB / 1.003 GB, free: 14.89 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001851/0.8477, allocations: 366.7 kB / 1.003 GB, free: 14.53 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002715/0.848, allocations: 193.2 kB / 1.004 GB, free: 14.34 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000427/0.8484, allocations: 443.3 kB / 1.004 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003689/0.8488, allocations: 259.4 kB / 1.004 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.8488, allocations: 4 kB / 1.004 GB, free: 13.53 MB / 0.7637 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00124/0.8501, allocations: 0.8021 MB / 1.005 GB, free: 12.71 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.8501, allocations: 11.94 kB / 1.005 GB, free: 12.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.8501, allocations: 8 kB / 1.005 GB, free: 12.69 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004847/0.8506, allocations: 156.2 kB / 1.005 GB, free: 12.52 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004385/0.8511, allocations: 123.8 kB / 1.005 GB, free: 12.4 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003288/0.8544, allocations: 4.04 MB / 1.009 GB, free: 7.965 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004488/0.8548, allocations: 31.97 kB / 1.009 GB, free: 7.934 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.8549, allocations: 28 kB / 1.009 GB, free: 7.906 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003908/0.8553, allocations: 217.7 kB / 1.01 GB, free: 7.684 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.702e-05/0.8554, allocations: 59.34 kB / 1.01 GB, free: 7.625 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/0.8565, allocations: 0.6006 MB / 1.01 GB, free: 7.004 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.8565, allocations: 0 / 1.01 GB, free: 7.004 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.8565, allocations: 4 kB / 1.01 GB, free: 7 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.8565, allocations: 7.984 kB / 1.01 GB, free: 6.992 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001945/0.8585, allocations: 1.253 MB / 1.011 GB, free: 5.648 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.8585, allocations: 4 kB / 1.011 GB, free: 5.645 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002591/0.8588, allocations: 55.89 kB / 1.012 GB, free: 5.59 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004316/0.8592, allocations: 140.2 kB / 1.012 GB, free: 5.438 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.8593, allocations: 8 kB / 1.012 GB, free: 5.43 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003522/0.8628, allocations: 4.032 MB / 1.016 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.8628, allocations: 3.938 kB / 1.016 GB, free: 0.9883 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001106/0.8639, allocations: 0.7121 MB / 1.016 GB, free: 228 kB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000256/0.8642, allocations: 168.3 kB / 1.016 GB, free: 40 kB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.833e-05/0.8643, allocations: 7.984 kB / 1.016 GB, free: 32 kB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002329/0.8645, allocations: 23.97 kB / 1.017 GB, free: 8 kB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.8646, allocations: 36.48 kB / 1.017 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.8646, allocations: 8 kB / 1.017 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003904/0.865, allocations: 330.8 kB / 1.017 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8651, allocations: 0 / 1.017 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0007634/0.8658, allocations: 140 kB / 1.017 GB, free: 15.51 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001481/0.8673, allocations: 1.253 MB / 1.018 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001444/0.8688, allocations: 1.033 MB / 1.019 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.8688, allocations: 3.938 kB / 1.019 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0007885/0.8696, allocations: 0.7307 MB / 1.02 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009198/0.8705, allocations: 185.7 kB / 1.02 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004731/0.8753, allocations: 3.438 MB / 1.023 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004536/0.8757, allocations: 0.9059 MB / 1.024 GB, free: 7.516 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0003937/0.8761, allocations: 117.3 kB / 1.024 GB, free: 7.398 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002502/0.8764, allocations: 199.4 kB / 1.025 GB, free: 7.203 MB / 0.7794 GB Notification: Performance of SimCode: time 2.525e-06/0.8764, allocations: 0 / 1.025 GB, free: 7.203 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02608/0.9025, allocations: 12.07 MB / 1.036 GB, free: 11.42 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/0.9027, allocations: 227.3 kB / 1.037 GB, free: 11.18 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.039/2.942, allocations: 0 / 1.037 GB, free: 11.18 MB / 0.795 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat does not exist to compare? outputFormat=mat