Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 116.6 kB / 17.17 MB, free: 5.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 195.7 kB / 20.12 MB, free: 2.809 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 225.6 MB / 248.5 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05354/0.05354, allocations: 8.232 MB / 311.6 MB, free: 2.117 MB / 238.1 MB " [Timeout remaining time 180] Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.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(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 67.89 kB / 434 MB, free: 11.89 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2523, allocations: 54.35 MB / 488.3 MB, free: 27.45 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.002375/0.2546, allocations: 1.587 MB / 489.9 MB, free: 26.22 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.2563, allocations: 1.56 MB / 491.5 MB, free: 24.97 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.466e-05/0.2564, allocations: 4.281 kB / 491.5 MB, free: 24.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003252/0.2567, allocations: 129.1 kB / 491.6 MB, free: 24.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002532/0.257, allocations: 111.7 kB / 491.7 MB, free: 24.79 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:34:7-34:67:writable] Warning: In relation pv.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001374/0.2583, allocations: 0.9262 MB / 492.6 MB, free: 24.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003026/0.2586, allocations: 257.4 kB / 492.9 MB, free: 23.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.2588, allocations: 57.23 kB / 492.9 MB, free: 23.92 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.342e-05/0.2589, allocations: 100.1 kB / 493 MB, free: 23.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.259, allocations: 136.8 kB / 493.2 MB, free: 23.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.494e-05/0.2591, allocations: 19.09 kB / 493.2 MB, free: 23.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003131/0.2594, allocations: 209.8 kB / 493.4 MB, free: 23.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.766e-05/0.2594, allocations: 47.7 kB / 493.4 MB, free: 23.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.143e-05/0.2595, allocations: 111.1 kB / 493.5 MB, free: 23.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004138/0.2599, allocations: 401.6 kB / 493.9 MB, free: 23.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2599, allocations: 0 / 493.9 MB, free: 23.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2599, allocations: 0 / 493.9 MB, free: 23.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.2599, allocations: 0 / 493.9 MB, free: 23.31 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.00218/0.2621, allocations: 0.8306 MB / 494.8 MB, free: 22.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.2622, allocations: 13.48 kB / 494.8 MB, free: 22.67 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.728e-05/0.2622, allocations: 53.55 kB / 494.8 MB, free: 22.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.824e-05/0.2623, allocations: 25.17 kB / 494.9 MB, free: 22.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.2625, allocations: 261.3 kB / 495.1 MB, free: 22.33 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.2625, allocations: 16.62 kB / 495.1 MB, free: 22.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.189e-05/0.2626, allocations: 20.75 kB / 495.1 MB, free: 22.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003715/0.2629, allocations: 260.8 kB / 495.4 MB, free: 22.15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.2629, allocations: 5.344 kB / 495.4 MB, free: 22.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.455e-05/0.263, allocations: 6.312 kB / 495.4 MB, free: 22.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.263, allocations: 7.312 kB / 495.4 MB, free: 22.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003318/0.2633, allocations: 249.3 kB / 495.7 MB, free: 22.01 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.2645, allocations: 1.142 MB / 496.8 MB, free: 20.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003698/0.2648, allocations: 273.4 kB / 497.1 MB, free: 20.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/0.265, allocations: 143.5 kB / 497.2 MB, free: 20.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.455e-05/0.2651, allocations: 12.41 kB / 497.2 MB, free: 20.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003613/0.2654, allocations: 219.8 kB / 497.4 MB, free: 20.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 1.543e-06/0.2654, allocations: 1.25 kB / 497.4 MB, free: 20.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002547/0.268, allocations: 0.9192 MB / 498.4 MB, free: 19.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/0.268, allocations: 58.98 kB / 498.4 MB, free: 19.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.2682, allocations: 184.8 kB / 498.6 MB, free: 19.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.2682, allocations: 36.48 kB / 498.6 MB, free: 19.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.886e-05/0.2682, allocations: 119.8 kB / 498.8 MB, free: 19.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.308e-05/0.2683, allocations: 98.81 kB / 498.8 MB, free: 19.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.084e-05/0.2684, allocations: 69.16 kB / 498.9 MB, free: 19.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.433e-05/0.2684, allocations: 334.7 kB / 499.2 MB, free: 19.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002001/0.2686, allocations: 149.2 kB / 499.4 MB, free: 19.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.2688, allocations: 186.4 kB / 499.6 MB, free: 18.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004647/0.2693, allocations: 360.8 kB / 499.9 MB, free: 18.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2693, allocations: 0 / 499.9 MB, free: 18.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001433/0.2707, allocations: 0.6436 MB / 0.4888 GB, free: 18.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.2708, allocations: 5.625 kB / 0.4888 GB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.2708, allocations: 1.062 kB / 0.4888 GB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001431/0.2722, allocations: 342.1 kB / 0.4892 GB, free: 18.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.2724, allocations: 49.41 kB / 0.4892 GB, free: 18.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003089/0.2755, allocations: 2.633 MB / 0.4918 GB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001862/0.2757, allocations: 29.19 kB / 0.4918 GB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.2757, allocations: 12.16 kB / 0.4918 GB, free: 15.93 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001123/0.2758, allocations: 144.1 kB / 0.492 GB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.227e-05/0.2759, allocations: 26.89 kB / 0.492 GB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001487/0.2774, allocations: 0.6432 MB / 0.4926 GB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.2774, allocations: 8.406 kB / 0.4926 GB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.2774, allocations: 4 kB / 0.4926 GB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.2774, allocations: 3.984 kB / 0.4926 GB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002569/0.2776, allocations: 395.8 kB / 0.493 GB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2776, allocations: 1.438 kB / 0.493 GB, free: 15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.2778, allocations: 44.45 kB / 0.4931 GB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001311/0.2791, allocations: 335.2 kB / 0.4934 GB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.2791, allocations: 10.56 kB / 0.4934 GB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0029/0.282, allocations: 2.603 MB / 0.4959 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.282, allocations: 3.938 kB / 0.4959 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.2834, allocations: 0.6307 MB / 0.4965 GB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.151e-05/0.2834, allocations: 99.66 kB / 0.4966 GB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.2834, allocations: 6.188 kB / 0.4966 GB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.2836, allocations: 18.98 kB / 0.4967 GB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.015e-05/0.2837, allocations: 22.94 kB / 0.4967 GB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.2837, allocations: 11.66 kB / 0.4967 GB, free: 12.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.716e-05/0.2838, allocations: 136.5 kB / 0.4968 GB, free: 11.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2838, allocations: 0 / 0.4968 GB, free: 11.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003808/0.2842, allocations: 95.78 kB / 0.4969 GB, free: 11.96 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001605/0.2858, allocations: 1.189 MB / 0.4981 GB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001209/0.287, allocations: 0.5871 MB / 0.4987 GB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.287, allocations: 1.75 kB / 0.4987 GB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008192/0.2878, allocations: 423.4 kB / 0.4991 GB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002458/0.2881, allocations: 27.58 kB / 0.4991 GB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004461/0.2925, allocations: 3.208 MB / 0.5022 GB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001651/0.2927, allocations: 0.748 MB / 0.5029 GB, free: 7.344 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001104/0.2928, allocations: 32.58 kB / 0.503 GB, free: 7.328 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.2929, allocations: 72.94 kB / 0.503 GB, free: 7.27 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2929, allocations: 0 / 0.503 GB, free: 7.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0319/0.3248, allocations: 8.454 MB / 0.5113 GB, free: 476 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.51, allocations: 9.516 kB / 0.5113 GB, free: 468 kB / 366.1 MB " [Timeout remaining time 648] (rm -f PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.952928189653903] Failed to read output from testmodel.py, exit status != 0: 11.6052309689112 11.621937675 11.35930484 Calling exit ...