Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",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.001209/0.001216, allocations: 104.8 kB / 16.4 MB, free: 6.492 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.001374/0.001374, allocations: 193.2 kB / 17.34 MB, free: 5.738 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.461/1.461, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7613/0.7613, allocations: 115.3 MB / 406.5 MB, free: 6.082 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 67.39 kB / 0.5572 GB, free: 32.45 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1809, allocations: 76.18 MB / 0.6316 GB, free: 4.898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.005025/0.186, allocations: 3.003 MB / 0.6345 GB, free: 1.879 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.003342/0.1893, allocations: 1.902 MB / 0.6364 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003081/0.1897, allocations: 4 kB / 0.6364 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001013/0.1908, allocations: 246.9 kB / 0.6366 GB, free: 15.72 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007267/0.1915, allocations: 215 kB / 0.6368 GB, free: 15.51 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008191/0.1924, allocations: 257.3 kB / 0.6371 GB, free: 15.26 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006421/0.193, allocations: 386.8 kB / 0.6374 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004299/0.1934, allocations: 214.5 kB / 0.6376 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000345/0.1938, allocations: 155.5 kB / 0.6378 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004215/0.1942, allocations: 183.3 kB / 0.638 GB, free: 14.33 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.025e-05/0.1943, allocations: 28 kB / 0.638 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005707/0.1949, allocations: 295.4 kB / 0.6383 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.195, allocations: 91.77 kB / 0.6384 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001816/0.1952, allocations: 143.3 kB / 0.6385 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000795/0.196, allocations: 0.4904 MB / 0.639 GB, free: 13.3 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.196, allocations: 0 / 0.639 GB, free: 13.3 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1961, allocations: 0 / 0.639 GB, free: 13.3 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.395e-05/0.1961, allocations: 0 / 0.639 GB, free: 13.3 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001512/0.1976, allocations: 0.6408 MB / 0.6396 GB, free: 12.6 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.1976, allocations: 12.02 kB / 0.6396 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.7e-05/0.1978, allocations: 58.73 kB / 0.6397 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009924/0.1988, allocations: 116.4 kB / 0.6398 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004741/0.1992, allocations: 287.7 kB / 0.6401 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.1993, allocations: 16.81 kB / 0.6401 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.774e-05/0.1993, allocations: 24.34 kB / 0.6401 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000841/0.2002, allocations: 430.6 kB / 0.6405 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.2002, allocations: 4 kB / 0.6405 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.2003, allocations: 12 kB / 0.6405 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.475e-05/0.2003, allocations: 24.36 kB / 0.6405 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009624/0.2013, allocations: 400.8 kB / 0.6409 GB, free: 11.17 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002071/0.2034, allocations: 1.622 MB / 0.6425 GB, free: 9.418 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.2046, allocations: 481 kB / 0.643 GB, free: 8.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004631/0.2051, allocations: 197.6 kB / 0.6432 GB, free: 8.73 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001557/0.2053, allocations: 96.94 kB / 0.6432 GB, free: 8.617 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005911/0.2059, allocations: 272.2 kB / 0.6435 GB, free: 8.332 MB / 494.1 MB Notification: Performance of pre-optimization done (n=27): time 1.953e-06/0.2059, allocations: 0 / 0.6435 GB, free: 8.332 MB / 494.1 MB Notification: Performance of matching and sorting (n=28): time 0.002038/0.2079, allocations: 0.7626 MB / 0.6443 GB, free: 7.543 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.208, allocations: 81.11 kB / 0.6443 GB, free: 7.445 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002079/0.2082, allocations: 221 kB / 0.6445 GB, free: 7.223 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.032e-05/0.2083, allocations: 33.7 kB / 0.6446 GB, free: 7.184 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.2084, allocations: 168.2 kB / 0.6447 GB, free: 7.012 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.833e-05/0.2085, allocations: 98.73 kB / 0.6448 GB, free: 6.914 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.2086, allocations: 69.44 kB / 0.6449 GB, free: 6.84 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.2087, allocations: 330.8 kB / 0.6452 GB, free: 6.508 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004597/0.2092, allocations: 181 kB / 0.6454 GB, free: 6.328 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004943/0.2097, allocations: 253.3 kB / 0.6456 GB, free: 6.051 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000955/0.2107, allocations: 462.9 kB / 0.6461 GB, free: 5.562 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2107, allocations: 0 / 0.6461 GB, free: 5.562 MB / 494.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001286/0.212, allocations: 0.5474 MB / 0.6466 GB, free: 5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.561e-05/0.212, allocations: 37.64 kB / 0.6466 GB, free: 4.957 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.212, allocations: 288 / 0.6466 GB, free: 4.957 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002812/0.2123, allocations: 48.81 kB / 0.6467 GB, free: 4.906 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004213/0.2127, allocations: 83.86 kB / 0.6468 GB, free: 4.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001553/0.2143, allocations: 1.607 MB / 0.6483 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003926/0.2147, allocations: 51.73 kB / 0.6484 GB, free: 3.023 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.515e-05/0.2148, allocations: 12 kB / 0.6484 GB, free: 3.012 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005364/0.2153, allocations: 284.4 kB / 0.6487 GB, free: 2.73 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004617/0.2158, allocations: 238 kB / 0.6489 GB, free: 2.465 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00088/0.2167, allocations: 452.8 kB / 0.6493 GB, free: 1.984 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.619e-06/0.2167, allocations: 3.938 kB / 0.6493 GB, free: 1.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001158/0.2179, allocations: 0.515 MB / 0.6498 GB, free: 1.449 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.2179, allocations: 39.27 kB / 0.6499 GB, free: 1.406 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.2179, allocations: 0 / 0.6499 GB, free: 1.406 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001449/0.2181, allocations: 44.81 kB / 0.6499 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003856/0.2184, allocations: 84.19 kB / 0.65 GB, free: 1.277 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.2199, allocations: 1.627 MB / 0.6516 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00034/0.2203, allocations: 43.83 kB / 0.6516 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.2203, allocations: 16 kB / 0.6516 GB, free: 15.44 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 (load.count,$PRE.load.count,load.T_start,$PRE.load.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001676/0.2205, allocations: 196.9 kB / 0.6518 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.774e-05/0.2205, allocations: 27.7 kB / 0.6518 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00112/0.2217, allocations: 477.7 kB / 0.6523 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.2217, allocations: 4 kB / 0.6523 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.2217, allocations: 4 kB / 0.6523 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.535e-06/0.2217, allocations: 3.984 kB / 0.6523 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007616/0.2225, allocations: 0.5661 MB / 0.6529 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.2225, allocations: 4 kB / 0.6529 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003661/0.2229, allocations: 75.95 kB / 0.6529 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001205/0.223, allocations: 32.83 kB / 0.653 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.407e-05/0.223, allocations: 8 kB / 0.653 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.2243, allocations: 1.531 MB / 0.6545 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.2243, allocations: 0 / 0.6545 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.2253, allocations: 0.5424 MB / 0.655 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001472/0.2254, allocations: 132.7 kB / 0.6551 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.069e-05/0.2255, allocations: 8 kB / 0.6551 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003275/0.2258, allocations: 39.95 kB / 0.6552 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.2259, allocations: 31.95 kB / 0.6552 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.226, allocations: 8 kB / 0.6552 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002173/0.2262, allocations: 180.5 kB / 0.6554 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2262, allocations: 0 / 0.6554 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005809/0.2268, allocations: 132 kB / 0.6555 GB, free: 11.2 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,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.001423/0.2282, allocations: 1.086 MB / 0.6566 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002031/0.2303, allocations: 1.004 MB / 0.6576 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.2303, allocations: 0 / 0.6576 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005869/0.2309, allocations: 318.5 kB / 0.6579 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004693/0.2314, allocations: 51.44 kB / 0.6579 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00562/0.237, allocations: 3.377 MB / 0.6612 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/0.2374, allocations: 0.7878 MB / 0.662 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000328/0.2378, allocations: 102.2 kB / 0.6621 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.238, allocations: 87.41 kB / 0.6622 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of SimCode: time 7.92e-07/0.238, allocations: 0 / 0.6622 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03192/0.2699, allocations: 7.617 MB / 0.6696 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.977/10.25, allocations: 16.14 kB / 0.6696 GB, free: 12.63 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)