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.004396/0.004397, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001159/0.001159, allocations: 193.6 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.2/1.2, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001981/0.001981, allocations: 285.2 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8664/0.8664, allocations: 169.3 MB / 0.4983 GB, free: 4.402 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001698/0.001698, allocations: 99.86 kB / 0.681 GB, free: 7.43 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3599, allocations: 86.97 MB / 0.7659 GB, free: 3.691 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004396/0.3644, allocations: 3.257 MB / 0.7691 GB, free: 436 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002642/0.367, allocations: 1.85 MB / 0.7709 GB, free: 14.57 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.3671, allocations: 8 kB / 0.7709 GB, free: 14.56 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0008212/0.368, allocations: 290.8 kB / 0.7712 GB, free: 14.27 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003902/0.3684, allocations: 215 kB / 0.7714 GB, free: 14.06 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005708/0.369, allocations: 299.2 kB / 0.7717 GB, free: 13.77 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003644/0.3693, allocations: 402.7 kB / 0.772 GB, free: 13.38 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003073/0.3697, allocations: 206.4 kB / 0.7722 GB, free: 13.18 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001916/0.3699, allocations: 163.5 kB / 0.7724 GB, free: 13.02 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000305/0.3702, allocations: 207.2 kB / 0.7726 GB, free: 12.81 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.552e-05/0.3702, allocations: 24 kB / 0.7726 GB, free: 12.79 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003125/0.3705, allocations: 239.6 kB / 0.7729 GB, free: 12.55 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.3707, allocations: 111.8 kB / 0.773 GB, free: 12.45 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.3708, allocations: 155.2 kB / 0.7731 GB, free: 12.29 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004806/0.3713, allocations: 467.6 kB / 0.7736 GB, free: 11.84 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3713, allocations: 0 / 0.7736 GB, free: 11.84 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3713, allocations: 0 / 0.7736 GB, free: 11.84 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.054e-06/0.3713, allocations: 4 kB / 0.7736 GB, free: 11.84 MB / 0.545 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.0009625/0.3723, allocations: 0.6076 MB / 0.7741 GB, free: 11.18 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.3723, allocations: 12.03 kB / 0.7742 GB, free: 11.16 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.076e-05/0.3724, allocations: 58.72 kB / 0.7742 GB, free: 11.1 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007035/0.3731, allocations: 92.66 kB / 0.7743 GB, free: 11.01 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003506/0.3735, allocations: 288.5 kB / 0.7746 GB, free: 10.68 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.3735, allocations: 16.94 kB / 0.7746 GB, free: 10.67 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.3736, allocations: 48.47 kB / 0.7746 GB, free: 10.62 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005676/0.3742, allocations: 441.1 kB / 0.7751 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.3742, allocations: 0 / 0.7751 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.24e-05/0.3742, allocations: 8 kB / 0.7751 GB, free: 10.15 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001372/0.3744, allocations: 40.53 kB / 0.7751 GB, free: 10.11 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000477/0.3749, allocations: 349.9 kB / 0.7754 GB, free: 9.77 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002189/0.3771, allocations: 2.199 MB / 0.7776 GB, free: 7.371 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003905/0.3775, allocations: 270.4 kB / 0.7778 GB, free: 7.098 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.3777, allocations: 157.3 kB / 0.778 GB, free: 6.941 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.3777, allocations: 4 kB / 0.778 GB, free: 6.938 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.3777, allocations: 34.55 kB / 0.778 GB, free: 6.895 MB / 0.545 GB Notification: Performance of pre-optimization done (n=22): time 2.605e-06/0.3777, allocations: 4 kB / 0.778 GB, free: 6.891 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.001617/0.3794, allocations: 1.067 MB / 0.7791 GB, free: 5.762 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.3794, allocations: 59.27 kB / 0.7791 GB, free: 5.691 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002196/0.3796, allocations: 249 kB / 0.7794 GB, free: 5.445 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.3797, allocations: 29.7 kB / 0.7794 GB, free: 5.41 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3798, allocations: 192.4 kB / 0.7796 GB, free: 5.219 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.003e-05/0.3798, allocations: 95.2 kB / 0.7797 GB, free: 5.125 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.3799, allocations: 77.59 kB / 0.7798 GB, free: 5.043 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.3801, allocations: 334.8 kB / 0.7801 GB, free: 4.707 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/0.3803, allocations: 147.9 kB / 0.7802 GB, free: 4.562 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/0.3806, allocations: 237.6 kB / 0.7804 GB, free: 4.293 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004609/0.381, allocations: 398.9 kB / 0.7808 GB, free: 3.871 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.381, allocations: 3.938 kB / 0.7808 GB, free: 3.867 MB / 0.545 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001006/0.382, allocations: 0.5901 MB / 0.7814 GB, free: 3.27 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.3821, allocations: 4 kB / 0.7814 GB, free: 3.266 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.3821, allocations: 4 kB / 0.7814 GB, free: 3.262 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006404/0.3827, allocations: 196.8 kB / 0.7816 GB, free: 3.066 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002594/0.383, allocations: 55.91 kB / 0.7816 GB, free: 3.012 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002642/0.3857, allocations: 2.5 MB / 0.7841 GB, free: 376 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002688/0.3859, allocations: 20.02 kB / 0.7841 GB, free: 356 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/0.386, allocations: 15.98 kB / 0.7841 GB, free: 340 kB / 0.545 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.0001465/0.3861, allocations: 165.7 kB / 0.7843 GB, free: 164 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.231e-05/0.3862, allocations: 35.86 kB / 0.7843 GB, free: 128 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005057/0.3867, allocations: 343.8 kB / 0.7846 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.3867, allocations: 4 kB / 0.7846 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-06/0.3867, allocations: 3.938 kB / 0.7847 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3867, allocations: 0 / 0.7847 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.3877, allocations: 0.814 MB / 0.7854 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3878, allocations: 4 kB / 0.7854 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003716/0.3881, allocations: 79.94 kB / 0.7855 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.3882, allocations: 4 kB / 0.7855 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.3882, allocations: 0 / 0.7855 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.3882, allocations: 7.984 kB / 0.7855 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3882, allocations: 0 / 0.7855 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006765/0.3889, allocations: 0.6105 MB / 0.7861 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.389, allocations: 129 kB / 0.7863 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.338e-05/0.3891, allocations: 11.98 kB / 0.7863 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.3893, allocations: 11.98 kB / 0.7863 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.661e-05/0.3893, allocations: 19.86 kB / 0.7863 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.3893, allocations: 8 kB / 0.7863 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001531/0.3895, allocations: 176.5 kB / 0.7865 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3895, allocations: 0 / 0.7865 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003679/0.3899, allocations: 92 kB / 0.7866 GB, free: 13.72 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.0009486/0.3908, allocations: 1.161 MB / 0.7877 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008053/0.3916, allocations: 0.5377 MB / 0.7882 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3917, allocations: 0 / 0.7882 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001837/0.3918, allocations: 150.8 kB / 0.7884 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.3923, allocations: 60.3 kB / 0.7884 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004389/0.3967, allocations: 3.675 MB / 0.792 GB, free: 7.941 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.397, allocations: 0.799 MB / 0.7928 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001905/0.3972, allocations: 70.92 kB / 0.7929 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.3974, allocations: 83.41 kB / 0.7929 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of SimCode: time 3.5e-07/0.3974, allocations: 0 / 0.7929 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02633/0.4237, allocations: 6.814 MB / 0.7996 GB, free: 360 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.895/9.319, allocations: 9.406 kB / 0.7996 GB, free: 352 kB / 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)