Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",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.004694/0.004694, allocations: 99.64 kB / 15.73 MB, free: 6.039 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.001276/0.001276, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.403/1.403, 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/NcDataReader2 2.5.1-master/package.mo): time 0.00257/0.00257, allocations: 285.4 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.012/1.012, allocations: 169.3 MB / 0.4983 GB, free: 4.395 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002723/0.002723, allocations: 103.8 kB / 0.681 GB, free: 7.461 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3544/0.3571, allocations: 86.97 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007786/0.3649, allocations: 5.462 MB / 0.7712 GB, free: 14.39 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004571/0.3695, allocations: 2.607 MB / 0.7738 GB, free: 11.78 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003877/0.3699, allocations: 27.81 kB / 0.7738 GB, free: 11.75 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001936/0.3719, allocations: 0.68 MB / 0.7745 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0009814/0.3729, allocations: 405.8 kB / 0.7749 GB, free: 10.67 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009428/0.3738, allocations: 391 kB / 0.7752 GB, free: 10.29 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00118/0.375, allocations: 0.9552 MB / 0.7762 GB, free: 9.328 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007071/0.3758, allocations: 466.5 kB / 0.7766 GB, free: 8.871 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005579/0.3763, allocations: 374.6 kB / 0.777 GB, free: 8.504 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006332/0.377, allocations: 406.4 kB / 0.7774 GB, free: 8.105 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.3771, allocations: 48 kB / 0.7774 GB, free: 8.059 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006882/0.3778, allocations: 355.3 kB / 0.7777 GB, free: 7.711 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002859/0.3781, allocations: 251.3 kB / 0.778 GB, free: 7.465 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004129/0.3785, allocations: 350.2 kB / 0.7783 GB, free: 7.121 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001252/0.3798, allocations: 0.974 MB / 0.7793 GB, free: 6.148 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.3798, allocations: 0 / 0.7793 GB, free: 6.148 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3798, allocations: 0 / 0.7793 GB, free: 6.148 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.502e-05/0.3798, allocations: 0 / 0.7793 GB, free: 6.148 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001752/0.3816, allocations: 0.9884 MB / 0.7802 GB, free: 5.109 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.3816, allocations: 12.03 kB / 0.7803 GB, free: 5.098 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000132/0.3817, allocations: 98.69 kB / 0.7803 GB, free: 4.992 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001443/0.3832, allocations: 196.3 kB / 0.7805 GB, free: 4.801 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008726/0.3841, allocations: 0.5261 MB / 0.781 GB, free: 4.238 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.984e-05/0.3841, allocations: 37.38 kB / 0.7811 GB, free: 4.199 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/0.3843, allocations: 56.55 kB / 0.7811 GB, free: 4.145 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.3856, allocations: 0.8348 MB / 0.782 GB, free: 3.234 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.634e-05/0.3856, allocations: 3.953 kB / 0.782 GB, free: 3.23 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.107e-05/0.3857, allocations: 20 kB / 0.782 GB, free: 3.211 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002074/0.3859, allocations: 72.95 kB / 0.782 GB, free: 3.141 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009694/0.3869, allocations: 0.5812 MB / 0.7826 GB, free: 2.555 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004961/0.3919, allocations: 4.57 MB / 0.7871 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005035/0.3924, allocations: 307.3 kB / 0.7874 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003354/0.3927, allocations: 221.3 kB / 0.7876 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.3928, allocations: 4.281 kB / 0.7876 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.939e-05/0.3928, allocations: 42.78 kB / 0.7876 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=33): time 1.663e-06/0.3928, allocations: 0 / 0.7876 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40): time 0.005865/0.3987, allocations: 2.625 MB / 0.7902 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/0.3987, allocations: 63.34 kB / 0.7902 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005366/0.3993, allocations: 462 kB / 0.7907 GB, free: 9.762 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.383e-05/0.3993, allocations: 33.7 kB / 0.7907 GB, free: 9.723 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002663/0.3996, allocations: 348.5 kB / 0.7911 GB, free: 9.379 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.3998, allocations: 150.7 kB / 0.7912 GB, free: 9.23 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001783/0.3999, allocations: 106.2 kB / 0.7913 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001831/0.4001, allocations: 366.8 kB / 0.7916 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003914/0.4005, allocations: 237 kB / 0.7919 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005283/0.4011, allocations: 402.5 kB / 0.7923 GB, free: 8.055 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009615/0.402, allocations: 0.6817 MB / 0.7929 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.402, allocations: 0 / 0.7929 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001791/0.4038, allocations: 0.918 MB / 0.7938 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.4039, allocations: 8 kB / 0.7938 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.4039, allocations: 8 kB / 0.7938 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008224/0.4047, allocations: 218.4 kB / 0.794 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005304/0.4053, allocations: 119.8 kB / 0.7942 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005777/0.411, allocations: 5.336 MB / 0.7994 GB, free: 256 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004499/0.4115, allocations: 31.97 kB / 0.7994 GB, free: 224 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.983e-05/0.4116, allocations: 23.94 kB / 0.7994 GB, free: 200 kB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003064/0.4119, allocations: 229.7 kB / 0.7996 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.412, allocations: 63.56 kB / 0.7997 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001632/0.4136, allocations: 0.774 MB / 0.8005 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.4136, allocations: 8 kB / 0.8005 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-06/0.4137, allocations: 4 kB / 0.8005 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.4137, allocations: 0 / 0.8005 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/0.4163, allocations: 1.494 MB / 0.8019 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.4163, allocations: 4 kB / 0.8019 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003882/0.4167, allocations: 72.34 kB / 0.802 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007066/0.4174, allocations: 206.3 kB / 0.8022 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.002e-05/0.4175, allocations: 12 kB / 0.8022 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005607/0.4231, allocations: 5.285 MB / 0.8074 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4231, allocations: 0 / 0.8074 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001946/0.4251, allocations: 1.14 MB / 0.8085 GB, free: 6.324 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002384/0.4253, allocations: 172.6 kB / 0.8086 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.437e-05/0.4254, allocations: 16.05 kB / 0.8087 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003646/0.4258, allocations: 27.97 kB / 0.8087 GB, free: 6.094 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.133e-05/0.4259, allocations: 31.95 kB / 0.8087 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.148e-05/0.4259, allocations: 19.94 kB / 0.8087 GB, free: 6.043 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003682/0.4263, allocations: 310.9 kB / 0.809 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.71e-07/0.4263, allocations: 0 / 0.809 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007848/0.4271, allocations: 164 kB / 0.8092 GB, free: 5.582 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002312/0.4294, allocations: 1.716 MB / 0.8109 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001694/0.4311, allocations: 1.004 MB / 0.8118 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.165e-06/0.4311, allocations: 0 / 0.8118 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.4322, allocations: 0.6837 MB / 0.8125 GB, free: 2.039 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009661/0.4332, allocations: 178.7 kB / 0.8127 GB, free: 1.875 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00836/0.4415, allocations: 5.619 MB / 0.8182 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006384/0.4422, allocations: 0.9455 MB / 0.8191 GB, free: 11 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000333/0.4425, allocations: 121 kB / 0.8192 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002891/0.4428, allocations: 207.4 kB / 0.8194 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of SimCode: time 2.4e-07/0.4429, allocations: 0 / 0.8194 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04968/0.4925, allocations: 14.13 MB / 0.8332 GB, free: 12.86 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/12.08, allocations: 4.688 kB / 0.8332 GB, free: 12.86 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)