Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.0008734/0.0008734, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0008727/0.0008727, allocations: 174 kB / 23.95 MB, free: 0.6133 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.9247/0.9247, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.2496/0.2496, allocations: 29.41 MB / 290.1 MB, free: 2.438 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.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.194e-06/2.194e-06, allocations: 0 / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.672e-05/2.891e-05, allocations: 2.281 kB / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.004628/0.004657, allocations: 4.309 MB / 434.5 MB, free: 9.258 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.006463, allocations: 1.464 MB / 436 MB, free: 7.789 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000185/0.006648, allocations: 19.81 kB / 436 MB, free: 7.77 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006144/0.007262, allocations: 285.1 kB / 436.3 MB, free: 7.492 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004682/0.00773, allocations: 302.3 kB / 436.6 MB, free: 7.195 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005162/0.008247, allocations: 259.2 kB / 436.8 MB, free: 6.941 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005151/0.008762, allocations: 0.6233 MB / 437.4 MB, free: 6.316 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000298/0.00906, allocations: 200 kB / 437.6 MB, free: 6.117 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004127/0.009472, allocations: 366.9 kB / 438 MB, free: 5.758 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003669/0.009839, allocations: 359.1 kB / 438.4 MB, free: 5.406 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.338e-05/0.009883, allocations: 43.94 kB / 438.4 MB, free: 5.363 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003305/0.01021, allocations: 235.4 kB / 438.6 MB, free: 5.133 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001686/0.01038, allocations: 243.4 kB / 438.9 MB, free: 4.895 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.01051, allocations: 171.6 kB / 439 MB, free: 4.727 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006019/0.01111, allocations: 0.7049 MB / 439.7 MB, free: 4.02 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.01111, allocations: 4 kB / 439.7 MB, free: 4.016 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.01112, allocations: 0 / 439.7 MB, free: 4.016 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.01112, allocations: 0 / 439.7 MB, free: 4.016 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.0009829/0.01211, allocations: 0.7133 MB / 440.5 MB, free: 3.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.01215, allocations: 11.98 kB / 440.5 MB, free: 3.258 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.103e-05/0.01222, allocations: 86.7 kB / 440.5 MB, free: 3.164 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004445/0.01266, allocations: 124.5 kB / 440.7 MB, free: 3.043 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004625/0.01313, allocations: 359.9 kB / 441 MB, free: 2.664 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.01315, allocations: 33.36 kB / 441.1 MB, free: 2.629 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.01325, allocations: 44.72 kB / 441.1 MB, free: 2.586 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006493/0.0139, allocations: 0.6953 MB / 441.8 MB, free: 1.855 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.01392, allocations: 3.984 kB / 441.8 MB, free: 1.852 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.957e-05/0.01395, allocations: 19.98 kB / 441.8 MB, free: 1.832 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001155/0.01406, allocations: 68.89 kB / 441.9 MB, free: 1.762 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006606/0.01472, allocations: 0.6635 MB / 442.5 MB, free: 1.102 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2042/0.2189, allocations: 2.495 MB / 445 MB, free: 52.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003446/0.2193, allocations: 289.3 kB / 445.3 MB, free: 52.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.2194, allocations: 197.1 kB / 445.5 MB, free: 52.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.397e-05/0.2195, allocations: 5 kB / 445.5 MB, free: 52.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.2195, allocations: 33.66 kB / 445.6 MB, free: 52.85 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 3.126e-06/0.2195, allocations: 1.531 kB / 445.6 MB, free: 52.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.001391/0.2209, allocations: 1.226 MB / 446.8 MB, free: 52.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/0.2209, allocations: 86.3 kB / 446.9 MB, free: 52.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001926/0.2211, allocations: 301.4 kB / 447.2 MB, free: 52.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.2211, allocations: 32.83 kB / 447.2 MB, free: 52.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.157e-05/0.2212, allocations: 254.9 kB / 447.4 MB, free: 51.89 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.9e-05/0.2213, allocations: 144.2 kB / 447.6 MB, free: 51.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.65e-05/0.2213, allocations: 86.81 kB / 447.7 MB, free: 51.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.04e-05/0.2214, allocations: 347.5 kB / 448 MB, free: 51.42 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.2215, allocations: 187.5 kB / 448.2 MB, free: 51.37 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.2217, allocations: 323.5 kB / 448.5 MB, free: 51.15 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003685/0.2221, allocations: 0.5534 MB / 449.1 MB, free: 50.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2221, allocations: 3.375 kB / 449.1 MB, free: 50.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006921/0.2228, allocations: 0.6796 MB / 449.7 MB, free: 50.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.2228, allocations: 9.344 kB / 449.8 MB, free: 50.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004332/0.2232, allocations: 495.8 kB / 450.2 MB, free: 50.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002596/0.2235, allocations: 112.5 kB / 450.3 MB, free: 50.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.2237, allocations: 85.53 kB / 450.4 MB, free: 50.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00135/0.225, allocations: 3.042 MB / 453.5 MB, free: 47.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.2252, allocations: 23.94 kB / 453.5 MB, free: 47.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.104e-05/0.2252, allocations: 23.66 kB / 453.5 MB, free: 47.65 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001578/0.2254, allocations: 212.8 kB / 453.7 MB, free: 47.49 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.409e-05/0.2254, allocations: 43.44 kB / 453.8 MB, free: 47.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003844/0.2258, allocations: 465.3 kB / 454.2 MB, free: 47.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/0.2258, allocations: 13.28 kB / 454.2 MB, free: 47.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.2258, allocations: 0 / 454.2 MB, free: 47.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2258, allocations: 2 kB / 454.2 MB, free: 47.29 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007785/0.2266, allocations: 0.9667 MB / 455.2 MB, free: 46.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.2266, allocations: 0 / 455.2 MB, free: 46.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001707/0.2268, allocations: 71.08 kB / 455.3 MB, free: 46.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.2268, allocations: 8.406 kB / 455.3 MB, free: 46.78 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.2268, allocations: 7.156 kB / 455.3 MB, free: 46.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.2268, allocations: 8.844 kB / 455.3 MB, free: 46.77 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2268, allocations: 0 / 455.3 MB, free: 46.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005031/0.2273, allocations: 0.7522 MB / 456 MB, free: 46.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.549e-05/0.2274, allocations: 61.17 kB / 456.1 MB, free: 46.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.2274, allocations: 11.03 kB / 456.1 MB, free: 46.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.278e-05/0.2275, allocations: 20.42 kB / 456.1 MB, free: 46.37 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.307e-05/0.2275, allocations: 16.33 kB / 456.2 MB, free: 46.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.2275, allocations: 10.72 kB / 456.2 MB, free: 46.37 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001058/0.2277, allocations: 209.9 kB / 456.4 MB, free: 46.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2277, allocations: 0 / 456.4 MB, free: 46.25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003323/0.228, allocations: 111.8 kB / 456.5 MB, free: 46.24 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * 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: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007459/0.2287, allocations: 1.327 MB / 457.8 MB, free: 45.35 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006254/0.2294, allocations: 0.6799 MB / 458.5 MB, free: 45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2294, allocations: 1.422 kB / 458.5 MB, free: 45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001431/0.2295, allocations: 191.4 kB / 458.7 MB, free: 44.94 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.2298, allocations: 64.36 kB / 458.7 MB, free: 44.92 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003058/0.2329, allocations: 4.318 MB / 463.1 MB, free: 42.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001664/0.233, allocations: 277.1 kB / 463.3 MB, free: 42.26 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000169/0.2332, allocations: 107.3 kB / 463.4 MB, free: 42.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.2333, allocations: 144.4 kB / 463.6 MB, free: 42.15 MB / 410.7 MB Notification: Performance of SimCode: time 8.71e-07/0.2333, allocations: 0 / 463.6 MB, free: 42.15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.2593, allocations: 9.065 MB / 472.6 MB, free: 40.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.901/7.16, allocations: 3.75 kB / 472.6 MB, free: 40.66 MB / 410.7 MB " [Timeout remaining time 653] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.18227747734636]