Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="BuildingSystems_BuildingSystems_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.007097/0.007097, allocations: 103.8 kB / 15.73 MB, free: 6.051 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.00144/0.00144, allocations: 191.5 kB / 16.67 MB, free: 5.984 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002191/0.002192, allocations: 282.6 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.964/0.964, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 99.83 kB / 0.681 GB, free: 12 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1671/0.1689, allocations: 86.98 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004796/0.1738, allocations: 3.252 MB / 0.7691 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00308/0.1769, allocations: 1.858 MB / 0.7709 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001962/0.1771, allocations: 7.938 kB / 0.7709 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009894/0.1781, allocations: 290.8 kB / 0.7712 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005601/0.1787, allocations: 223 kB / 0.7714 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007411/0.1794, allocations: 283.3 kB / 0.7717 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005395/0.18, allocations: 406.8 kB / 0.772 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003959/0.1804, allocations: 207.9 kB / 0.7722 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000288/0.1807, allocations: 167.4 kB / 0.7724 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004198/0.1811, allocations: 195.3 kB / 0.7726 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.418e-05/0.1812, allocations: 24 kB / 0.7726 GB, free: 2.051 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004169/0.1816, allocations: 231.5 kB / 0.7728 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.1818, allocations: 119.7 kB / 0.7729 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.182, allocations: 143.3 kB / 0.7731 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006194/0.1826, allocations: 478.5 kB / 0.7735 GB, free: 1.098 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1826, allocations: 3.984 kB / 0.7735 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.714e-06/0.1826, allocations: 0 / 0.7735 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.076e-05/0.1826, allocations: 0 / 0.7735 GB, free: 1.094 MB / 0.5606 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.001155/0.1838, allocations: 0.5849 MB / 0.7741 GB, free: 468 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1838, allocations: 8.031 kB / 0.7741 GB, free: 460 kB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.484e-05/0.1839, allocations: 62.73 kB / 0.7742 GB, free: 388 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007553/0.1847, allocations: 100.4 kB / 0.7743 GB, free: 288 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.356/0.5407, allocations: 275.9 kB / 0.7745 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.77e-05/0.5408, allocations: 19.91 kB / 0.7746 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.541, allocations: 35.53 kB / 0.7746 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007935/0.5418, allocations: 445.4 kB / 0.775 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.5418, allocations: 2.562 kB / 0.775 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.988e-05/0.5418, allocations: 9.375 kB / 0.775 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001601/0.542, allocations: 41.67 kB / 0.7751 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005955/0.5426, allocations: 349.8 kB / 0.7754 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002225/0.5448, allocations: 2.194 MB / 0.7775 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004708/0.5453, allocations: 271.9 kB / 0.7778 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002545/0.5456, allocations: 169.3 kB / 0.778 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.5456, allocations: 3.062 kB / 0.778 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.721e-05/0.5457, allocations: 37.7 kB / 0.778 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 1.703e-06/0.5457, allocations: 0 / 0.778 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of matching and sorting (n=23): time 0.001867/0.5475, allocations: 1.045 MB / 0.779 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.673e-05/0.5476, allocations: 58.3 kB / 0.7791 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.5478, allocations: 252.1 kB / 0.7793 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.5479, allocations: 30.58 kB / 0.7794 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.93e-05/0.548, allocations: 194.9 kB / 0.7795 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.72e-05/0.548, allocations: 90.34 kB / 0.7796 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.5482, allocations: 68.34 kB / 0.7797 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.766e-05/0.5482, allocations: 347.5 kB / 0.78 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000247/0.5485, allocations: 155 kB / 0.7802 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002873/0.5488, allocations: 238.1 kB / 0.7804 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005191/0.5493, allocations: 394.9 kB / 0.7808 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.5493, allocations: 1.156 kB / 0.7808 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00114/0.5505, allocations: 0.5955 MB / 0.7814 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.5505, allocations: 7.172 kB / 0.7814 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.5505, allocations: 2.344 kB / 0.7814 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006901/0.5512, allocations: 190.7 kB / 0.7815 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002887/0.5515, allocations: 63.28 kB / 0.7816 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002591/0.5541, allocations: 2.491 MB / 0.784 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003029/0.5544, allocations: 22.16 kB / 0.7841 GB, free: 9.098 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.249e-05/0.5545, allocations: 18 kB / 0.7841 GB, free: 9.094 MB / 0.5606 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.0001629/0.5546, allocations: 159.2 kB / 0.7842 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.913e-05/0.5547, allocations: 22.75 kB / 0.7843 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000555/0.5553, allocations: 353.5 kB / 0.7846 GB, free: 8.785 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.5553, allocations: 1.688 kB / 0.7846 GB, free: 8.785 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.5553, allocations: 9.469 kB / 0.7846 GB, free: 8.781 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.5553, allocations: 3.594 kB / 0.7846 GB, free: 8.781 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.5563, allocations: 0.8133 MB / 0.7854 GB, free: 8.285 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.5563, allocations: 1.859 kB / 0.7854 GB, free: 8.285 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004056/0.5567, allocations: 74.16 kB / 0.7855 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.5567, allocations: 3.062 kB / 0.7855 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.512e-05/0.5568, allocations: 10.84 kB / 0.7855 GB, free: 8.273 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.5568, allocations: 1.625 kB / 0.7855 GB, free: 8.273 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5568, allocations: 4.938 kB / 0.7855 GB, free: 8.27 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006684/0.5575, allocations: 0.612 MB / 0.7861 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.5576, allocations: 131.2 kB / 0.7862 GB, free: 7.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.949e-05/0.5576, allocations: 10.08 kB / 0.7862 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.5578, allocations: 8.703 kB / 0.7862 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.5579, allocations: 23.56 kB / 0.7863 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.5579, allocations: 6.875 kB / 0.7863 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001425/0.5581, allocations: 181 kB / 0.7864 GB, free: 7.703 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5581, allocations: 0 / 0.7864 GB, free: 7.703 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000421/0.5585, allocations: 87.09 kB / 0.7865 GB, free: 7.695 MB / 0.5606 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.0008064/0.5593, allocations: 1.16 MB / 0.7876 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008181/0.5601, allocations: 0.5348 MB / 0.7882 GB, free: 6.57 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5602, allocations: 4.062 kB / 0.7882 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.5604, allocations: 155.9 kB / 0.7883 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.5608, allocations: 52.58 kB / 0.7884 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004467/0.5653, allocations: 3.657 MB / 0.7919 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.5656, allocations: 0.7982 MB / 0.7927 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002439/0.5658, allocations: 75.62 kB / 0.7928 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.566, allocations: 85.44 kB / 0.7929 GB, free: 3.426 MB / 0.5606 GB Notification: Performance of SimCode: time 6.92e-07/0.566, allocations: 0 / 0.7929 GB, free: 3.426 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02787/0.5939, allocations: 6.819 MB / 0.7995 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.618/10.21, allocations: 12.12 kB / 0.7995 GB, free: 2.762 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)