Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009153/0.0009153, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8737/0.8737, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2093/0.2093, allocations: 29.4 MB / 290.1 MB, free: 2.434 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.749e-05/1.93e-05, allocations: 2.281 kB / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.006146/0.006166, allocations: 7.103 MB / 437.3 MB, free: 6.465 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002965/0.00913, allocations: 2.239 MB / 439.5 MB, free: 4.219 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003965/0.009527, allocations: 35.69 kB / 439.6 MB, free: 4.184 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.01078, allocations: 0.8274 MB / 440.4 MB, free: 3.355 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000831/0.01161, allocations: 0.5242 MB / 440.9 MB, free: 2.828 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008545/0.01246, allocations: 478.6 kB / 441.4 MB, free: 2.359 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001082/0.01354, allocations: 1.344 MB / 442.7 MB, free: 1.012 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000616/0.01416, allocations: 0.5214 MB / 443.3 MB, free: 492 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1742/0.1884, allocations: 0.7728 MB / 444 MB, free: 43.91 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008508/0.1892, allocations: 0.651 MB / 444.7 MB, free: 43.91 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001064/0.1893, allocations: 83.53 kB / 444.8 MB, free: 43.91 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004365/0.1898, allocations: 281 kB / 445 MB, free: 43.91 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002854/0.1901, allocations: 0.531 MB / 445.6 MB, free: 43.91 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002854/0.1903, allocations: 393.3 kB / 446 MB, free: 43.91 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009437/0.1913, allocations: 1.363 MB / 447.3 MB, free: 43.88 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1913, allocations: 1.5 kB / 447.3 MB, free: 43.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1913, allocations: 0 / 447.3 MB, free: 43.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.1913, allocations: 0.5312 kB / 447.3 MB, free: 43.88 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.001302/0.1926, allocations: 1.279 MB / 448.6 MB, free: 43.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.1926, allocations: 13.39 kB / 448.6 MB, free: 43.2 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.68e-05/0.1927, allocations: 140.6 kB / 448.8 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005903/0.1933, allocations: 215.4 kB / 449 MB, free: 43.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006968/0.194, allocations: 0.6693 MB / 449.6 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.1941, allocations: 72.94 kB / 449.7 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/0.1942, allocations: 101.4 kB / 449.8 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.1952, allocations: 1.256 MB / 451.1 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.1952, allocations: 3.375 kB / 451.1 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.287e-05/0.1953, allocations: 33.17 kB / 451.1 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000135/0.1954, allocations: 65.47 kB / 451.2 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000912/0.1963, allocations: 1.036 MB / 452.2 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002841/0.1992, allocations: 4.417 MB / 456.6 MB, free: 40 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006234/0.1998, allocations: 0.6552 MB / 457.3 MB, free: 39.72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003358/0.2001, allocations: 443 kB / 457.7 MB, free: 39.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.2002, allocations: 7.062 kB / 457.7 MB, free: 39.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004156/0.2006, allocations: 0.5491 MB / 458.3 MB, free: 39.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=69): time 1.864e-06/0.2006, allocations: 0 / 458.3 MB, free: 39.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=73): time 0.002525/0.2031, allocations: 2.811 MB / 461.1 MB, free: 37.85 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.2032, allocations: 171.9 kB / 461.2 MB, free: 37.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003467/0.2035, allocations: 0.6016 MB / 461.8 MB, free: 37.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.2035, allocations: 40.77 kB / 461.9 MB, free: 37.36 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.2037, allocations: 490.7 kB / 462.4 MB, free: 36.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.916e-05/0.2038, allocations: 263.2 kB / 462.6 MB, free: 36.78 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.2039, allocations: 170.9 kB / 462.8 MB, free: 36.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.153e-05/0.204, allocations: 390.6 kB / 463.2 MB, free: 36.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003275/0.2043, allocations: 411.2 kB / 463.6 MB, free: 36.19 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004128/0.2047, allocations: 0.6608 MB / 464.2 MB, free: 35.72 MB / 410.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.003494/0.2082, allocations: 3.209 MB / 467.4 MB, free: 34.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.2082, allocations: 3.219 kB / 467.4 MB, free: 34.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001265/0.2095, allocations: 1.368 MB / 468.8 MB, free: 33.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.325e-05/0.2095, allocations: 32.39 kB / 468.8 MB, free: 33.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.2095, allocations: 13.22 kB / 468.8 MB, free: 33.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003695/0.2099, allocations: 254.2 kB / 469.1 MB, free: 33.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005572/0.2104, allocations: 257.2 kB / 469.3 MB, free: 33.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002761/0.2132, allocations: 5.732 MB / 475.1 MB, free: 29.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003122/0.2135, allocations: 36.2 kB / 475.1 MB, free: 29.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.705e-05/0.2136, allocations: 43.34 kB / 475.2 MB, free: 29.15 MB / 410.7 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,$PRE.switch.t0,$PRE.switch.closed,$PRE.switch.open,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,switch.open,switch.t0,switch.control[1],$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * 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 {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003992/0.214, allocations: 371.4 kB / 475.5 MB, free: 28.92 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.991e-05/0.214, allocations: 84.75 kB / 475.6 MB, free: 28.88 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001179/0.2152, allocations: 1.174 MB / 476.8 MB, free: 28.37 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.2152, allocations: 9.312 kB / 476.8 MB, free: 28.37 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.2152, allocations: 3.312 kB / 476.8 MB, free: 28.37 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.2152, allocations: 9.25 kB / 476.8 MB, free: 28.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002044/0.2173, allocations: 2.159 MB / 479 MB, free: 27.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.2173, allocations: 7.25 kB / 479 MB, free: 27.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004614/0.2177, allocations: 189.4 kB / 479.1 MB, free: 27.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003606/0.2181, allocations: 249.6 kB / 479.4 MB, free: 27.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.948e-05/0.2181, allocations: 24.59 kB / 479.4 MB, free: 27.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002956/0.2211, allocations: 5.658 MB / 485.1 MB, free: 22.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.2211, allocations: 3.969 kB / 485.1 MB, free: 22.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/0.223, allocations: 1.704 MB / 486.8 MB, free: 21.76 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.296e-05/0.2231, allocations: 81.53 kB / 486.9 MB, free: 21.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.517e-05/0.2231, allocations: 30.58 kB / 486.9 MB, free: 21.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.2233, allocations: 21.73 kB / 486.9 MB, free: 21.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.2234, allocations: 61.66 kB / 487 MB, free: 21.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/0.2235, allocations: 24.12 kB / 487 MB, free: 21.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003151/0.2238, allocations: 414.5 kB / 487.4 MB, free: 21.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2238, allocations: 0 / 487.4 MB, free: 21.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007705/0.2246, allocations: 272 kB / 487.7 MB, free: 21.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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 {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001782/0.2263, allocations: 2.285 MB / 489.9 MB, free: 20.09 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.2276, allocations: 1.403 MB / 491.4 MB, free: 19.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2276, allocations: 0 / 491.4 MB, free: 19.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008339/0.2284, allocations: 0.9115 MB / 492.3 MB, free: 18.76 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005653/0.229, allocations: 187 kB / 492.4 MB, free: 18.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007918/0.2369, allocations: 8.209 MB / 0.4889 GB, free: 14.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005401/0.2374, allocations: 0.519 MB / 0.4894 GB, free: 14.14 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004577/0.2379, allocations: 208.1 kB / 0.4896 GB, free: 14.11 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002882/0.2382, allocations: 338.1 kB / 0.4899 GB, free: 13.85 MB / 410.7 MB Notification: Performance of SimCode: time 8.51e-07/0.2382, allocations: 1.219 kB / 0.49 GB, free: 13.85 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04678/0.285, allocations: 20.5 MB / 0.51 GB, free: 4.195 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.521/7.806, allocations: 2.969 kB / 0.51 GB, free: 4.195 MB / 410.7 MB " [Timeout remaining time 652] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationFixedInitial.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.673493411391973]