Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.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,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine",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.001019/0.001019, allocations: 108 kB / 15.6 MB, free: 132 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.001072/0.001072, allocations: 198.7 kB / 16.54 MB, free: 6.672 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.28/1.28, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002447/0.002447, allocations: 298.8 kB / 290.7 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9723/0.9723, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003547/0.003547, allocations: 99.83 kB / 0.5954 GB, free: 27.71 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1516, allocations: 86.98 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01261/0.1642, allocations: 10.89 MB / 0.6909 GB, free: 5.668 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01262/0.1769, allocations: 8.796 MB / 0.6995 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001248/0.1782, allocations: 59.62 kB / 0.6996 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.004263/0.1825, allocations: 1.674 MB / 0.7012 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004361/0.1868, allocations: 1.526 MB / 0.7027 GB, free: 9.582 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001865/0.1887, allocations: 0.6743 MB / 0.7034 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002925/0.1917, allocations: 2.286 MB / 0.7056 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00192/0.1936, allocations: 1.38 MB / 0.7069 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001784/0.1954, allocations: 0.9848 MB / 0.7079 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002045/0.1974, allocations: 1.016 MB / 0.7089 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000485/0.1979, allocations: 136 kB / 0.709 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001799/0.1998, allocations: 0.8071 MB / 0.7098 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000782/0.2006, allocations: 0.5686 MB / 0.7104 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001713/0.2023, allocations: 0.8823 MB / 0.7112 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00337/0.2057, allocations: 2.55 MB / 0.7137 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2057, allocations: 0 / 0.7137 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2057, allocations: 4 kB / 0.7137 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.606e-05/0.2058, allocations: 0 / 0.7137 GB, free: 14.23 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.003862/0.2096, allocations: 2.01 MB / 0.7157 GB, free: 12.17 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.2097, allocations: 8.031 kB / 0.7157 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002881/0.21, allocations: 198 kB / 0.7159 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01159/0.2216, allocations: 2.05 MB / 0.7179 GB, free: 9.902 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002255/0.2239, allocations: 1.123 MB / 0.719 GB, free: 8.723 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.974e-05/0.224, allocations: 86.7 kB / 0.7191 GB, free: 8.637 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002856/0.2243, allocations: 119.9 kB / 0.7192 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005566/0.2298, allocations: 2.482 MB / 0.7216 GB, free: 5.887 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.582e-05/0.2299, allocations: 11.84 kB / 0.7216 GB, free: 5.875 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001632/0.2301, allocations: 51.98 kB / 0.7217 GB, free: 5.824 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003484/0.2304, allocations: 134.1 kB / 0.7218 GB, free: 5.691 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007275/0.2377, allocations: 2.537 MB / 0.7243 GB, free: 3.145 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01283/0.2505, allocations: 10.07 MB / 0.7341 GB, free: 8.41 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006427/0.257, allocations: 1.953 MB / 0.736 GB, free: 6.43 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002819/0.2598, allocations: 0.9737 MB / 0.737 GB, free: 5.453 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 4.353e-05/0.2599, allocations: 4.438 kB / 0.737 GB, free: 5.445 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.2599, allocations: 39 kB / 0.737 GB, free: 5.398 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=53): time 2.385e-06/0.2599, allocations: 0 / 0.737 GB, free: 5.398 MB / 0.5294 GB Notification: Performance of matching and sorting (n=81): time 0.03176/0.2917, allocations: 8.707 MB / 0.7455 GB, free: 12.63 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.2918, allocations: 67.94 kB / 0.7456 GB, free: 12.55 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001458/0.2933, allocations: 1.101 MB / 0.7466 GB, free: 11.43 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.2934, allocations: 37.7 kB / 0.7467 GB, free: 11.39 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004827/0.2939, allocations: 0.7419 MB / 0.7474 GB, free: 10.64 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002616/0.2941, allocations: 279.9 kB / 0.7477 GB, free: 10.36 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003806/0.2945, allocations: 202.4 kB / 0.7479 GB, free: 10.16 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.2946, allocations: 341.9 kB / 0.7482 GB, free: 9.82 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003022/0.2977, allocations: 1.079 MB / 0.7492 GB, free: 8.742 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003124/0.3008, allocations: 1.305 MB / 0.7505 GB, free: 7.344 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00611/0.3069, allocations: 2.382 MB / 0.7528 GB, free: 4.867 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.3069, allocations: 4 kB / 0.7529 GB, free: 4.863 MB / 0.545 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00891/0.3159, allocations: 3.277 MB / 0.7561 GB, free: 1.547 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.3159, allocations: 8 kB / 0.7561 GB, free: 1.539 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/0.3159, allocations: 8 kB / 0.7561 GB, free: 1.531 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002763/0.3187, allocations: 0.7912 MB / 0.7568 GB, free: 0.7148 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001933/0.3206, allocations: 415.2 kB / 0.7572 GB, free: 316 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2613/0.582, allocations: 15.92 MB / 0.7728 GB, free: 87.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00233/0.5844, allocations: 289.3 kB / 0.7731 GB, free: 87.32 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.5845, allocations: 58.55 kB / 0.7731 GB, free: 87.32 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (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.0006482/0.5851, allocations: 397.6 kB / 0.7735 GB, free: 87.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.5854, allocations: 141.3 kB / 0.7736 GB, free: 87.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008506/0.5939, allocations: 3.214 MB / 0.7768 GB, free: 87.08 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.5939, allocations: 8.25 kB / 0.7768 GB, free: 87.08 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.849e-06/0.5939, allocations: 7.312 kB / 0.7768 GB, free: 87.08 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.594, allocations: 5.469 kB / 0.7768 GB, free: 87.08 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0102/0.6042, allocations: 4.894 MB / 0.7816 GB, free: 85.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.6042, allocations: 3.797 kB / 0.7816 GB, free: 85.69 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/0.6058, allocations: 356.6 kB / 0.7819 GB, free: 85.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002133/0.608, allocations: 0.7022 MB / 0.7826 GB, free: 85.48 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.455e-05/0.6081, allocations: 30.8 kB / 0.7826 GB, free: 85.47 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01123/0.6193, allocations: 15.54 MB / 0.7978 GB, free: 72.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.6193, allocations: 3.125 kB / 0.7978 GB, free: 72.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007354/0.6267, allocations: 3.04 MB / 0.8008 GB, free: 71.52 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005725/0.6273, allocations: 384.7 kB / 0.8011 GB, free: 71.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002552/0.6275, allocations: 20.94 kB / 0.8012 GB, free: 71.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001827/0.6294, allocations: 298.8 kB / 0.8015 GB, free: 71.27 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/0.6296, allocations: 78.78 kB / 0.8015 GB, free: 71.25 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.439e-05/0.6297, allocations: 43.67 kB / 0.8016 GB, free: 71.25 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008396/0.6305, allocations: 0.74 MB / 0.8023 GB, free: 70.95 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6305, allocations: 0 / 0.8023 GB, free: 70.95 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001349/0.6319, allocations: 431.5 kB / 0.8027 GB, free: 70.91 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007983/0.6398, allocations: 3.617 MB / 0.8062 GB, free: 69.32 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007927/0.6478, allocations: 3.763 MB / 0.8099 GB, free: 67.02 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.6478, allocations: 1.25 kB / 0.8099 GB, free: 67.02 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00436/0.6522, allocations: 2.365 MB / 0.8122 GB, free: 65.32 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002013/0.6542, allocations: 0.5232 MB / 0.8127 GB, free: 65.08 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02876/0.683, allocations: 16.57 MB / 0.8289 GB, free: 54.25 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007227/0.6837, allocations: 1.388 MB / 0.8303 GB, free: 52.83 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001411/0.6851, allocations: 369.1 kB / 0.8306 GB, free: 52.48 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006219/0.6858, allocations: 0.6047 MB / 0.8312 GB, free: 51.88 MB / 0.5606 GB Notification: Performance of SimCode: time 4.21e-07/0.6858, allocations: 0 / 0.8312 GB, free: 51.88 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.147/2.832, allocations: 41.26 MB / 0.8715 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.18/17.02, allocations: 15.38 kB / 0.8715 GB, free: 11.25 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1)