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.001722/0.001722, allocations: 112.5 kB / 15.73 MB, free: 76 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.001826/0.001826, allocations: 191.3 kB / 16.66 MB, free: 6.582 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002529/0.002529, allocations: 282.8 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9749/0.9749, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002619/0.002619, allocations: 95.84 kB / 0.681 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1479, allocations: 86.97 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.0049/0.1528, allocations: 3.257 MB / 0.7691 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003003/0.1559, allocations: 1.85 MB / 0.7709 GB, free: 3.824 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.156, allocations: 11.94 kB / 0.7709 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008757/0.1569, allocations: 293.6 kB / 0.7712 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004708/0.1574, allocations: 219 kB / 0.7714 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006718/0.1581, allocations: 279.3 kB / 0.7716 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004909/0.1586, allocations: 410.8 kB / 0.772 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003486/0.1589, allocations: 207.8 kB / 0.7722 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002268/0.1592, allocations: 175.4 kB / 0.7724 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003656/0.1595, allocations: 191.3 kB / 0.7726 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.188e-05/0.1596, allocations: 24 kB / 0.7726 GB, free: 2.051 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003885/0.16, allocations: 231.5 kB / 0.7728 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.1601, allocations: 123.7 kB / 0.773 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000147/0.1603, allocations: 139.3 kB / 0.7731 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000586/0.1609, allocations: 482.2 kB / 0.7735 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1609, allocations: 0 / 0.7735 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.031e-06/0.1609, allocations: 0 / 0.7735 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.1609, allocations: 4 kB / 0.7735 GB, free: 1.09 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.001056/0.162, allocations: 0.596 MB / 0.7741 GB, free: 452 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.162, allocations: 8.031 kB / 0.7741 GB, free: 444 kB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.017e-05/0.1621, allocations: 66.72 kB / 0.7742 GB, free: 368 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007144/0.1628, allocations: 92.64 kB / 0.7743 GB, free: 276 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2487/0.4116, allocations: 283.3 kB / 0.7746 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.717e-05/0.4116, allocations: 19.33 kB / 0.7746 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.4118, allocations: 35.88 kB / 0.7746 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006389/0.4124, allocations: 442.6 kB / 0.775 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.4124, allocations: 1.062 kB / 0.775 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.37e-05/0.4125, allocations: 11.78 kB / 0.775 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001422/0.4126, allocations: 45.58 kB / 0.7751 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004947/0.4131, allocations: 352 kB / 0.7754 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001849/0.415, allocations: 2.194 MB / 0.7776 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003722/0.4154, allocations: 274.7 kB / 0.7778 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000192/0.4156, allocations: 159.6 kB / 0.778 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.4156, allocations: 6.516 kB / 0.778 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.75e-05/0.4156, allocations: 34.5 kB / 0.778 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.594e-06/0.4156, allocations: 0 / 0.778 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of matching and sorting (n=23): time 0.001516/0.4171, allocations: 1.052 MB / 0.779 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.858e-05/0.4172, allocations: 62.2 kB / 0.7791 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002/0.4174, allocations: 253.6 kB / 0.7793 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.4174, allocations: 31.45 kB / 0.7794 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.923e-05/0.4175, allocations: 193.6 kB / 0.7796 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.723e-05/0.4175, allocations: 89.41 kB / 0.7796 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.4176, allocations: 73.56 kB / 0.7797 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.52e-05/0.4177, allocations: 336.2 kB / 0.78 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.4179, allocations: 155.5 kB / 0.7802 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002336/0.4181, allocations: 235.9 kB / 0.7804 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004259/0.4186, allocations: 402.3 kB / 0.7808 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4186, allocations: 2 kB / 0.7808 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009635/0.4196, allocations: 0.5941 MB / 0.7814 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.4196, allocations: 8.75 kB / 0.7814 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.4196, allocations: 3.531 kB / 0.7814 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006134/0.4202, allocations: 192.7 kB / 0.7816 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002519/0.4205, allocations: 62.98 kB / 0.7816 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/0.4226, allocations: 2.498 MB / 0.7841 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002797/0.4229, allocations: 19.59 kB / 0.7841 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.552e-05/0.423, allocations: 14.3 kB / 0.7841 GB, free: 8.961 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.0001185/0.4231, allocations: 163.2 kB / 0.7843 GB, free: 8.82 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.354e-05/0.4231, allocations: 25.8 kB / 0.7843 GB, free: 8.809 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004386/0.4236, allocations: 354.2 kB / 0.7846 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.4236, allocations: 2.812 kB / 0.7846 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.4236, allocations: 1.688 kB / 0.7846 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4236, allocations: 8.125 kB / 0.7846 GB, free: 8.641 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008243/0.4244, allocations: 0.8101 MB / 0.7854 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.4245, allocations: 4.688 kB / 0.7854 GB, free: 8.141 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003649/0.4248, allocations: 77.33 kB / 0.7855 GB, free: 8.137 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.4248, allocations: 3.328 kB / 0.7855 GB, free: 8.137 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.4249, allocations: 7.375 kB / 0.7855 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.4249, allocations: 1.812 kB / 0.7855 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.4249, allocations: 4.844 kB / 0.7855 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005875/0.4255, allocations: 0.6072 MB / 0.7861 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.007e-05/0.4256, allocations: 138 kB / 0.7862 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.801e-05/0.4256, allocations: 6.125 kB / 0.7863 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.4258, allocations: 16.47 kB / 0.7863 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.274e-05/0.4259, allocations: 20.22 kB / 0.7863 GB, free: 7.664 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.4259, allocations: 5.531 kB / 0.7863 GB, free: 7.664 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001153/0.426, allocations: 182.8 kB / 0.7865 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.01e-07/0.426, allocations: 0 / 0.7865 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004561/0.4265, allocations: 83.22 kB / 0.7865 GB, free: 7.551 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.0006814/0.4272, allocations: 1.165 MB / 0.7877 GB, free: 6.691 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0006758/0.4278, allocations: 0.5337 MB / 0.7882 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4279, allocations: 10.88 kB / 0.7882 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001644/0.428, allocations: 147.1 kB / 0.7884 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000484/0.4285, allocations: 54.11 kB / 0.7884 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003814/0.4323, allocations: 3.669 MB / 0.792 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001888/0.4325, allocations: 0.793 MB / 0.7928 GB, free: 3.348 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001738/0.4327, allocations: 77.61 kB / 0.7928 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.4328, allocations: 88.59 kB / 0.7929 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of SimCode: time 2.1e-07/0.4328, allocations: 0 / 0.7929 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.017/1.45, allocations: 6.823 MB / 0.7996 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.74/16.19, allocations: 5.188 kB / 0.7996 GB, free: 2.617 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)