Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.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.001257/0.001257, allocations: 108 kB / 17.17 MB, free: 5.867 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.001295/0.001295, allocations: 197.4 kB / 20.12 MB, free: 2.93 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.354/1.354, allocations: 225.6 MB / 248.5 MB, free: 3.645 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.05147/0.05147, allocations: 8.233 MB / 311.6 MB, free: 2.059 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.UsingDiesel.OneDieselRescuingOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 67.89 kB / 434 MB, free: 11.82 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2531, allocations: 54.36 MB / 488.3 MB, free: 27.48 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003273/0.2564, allocations: 2.819 MB / 491.1 MB, free: 25.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.2576, allocations: 0.8515 MB / 492 MB, free: 24.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.2577, allocations: 9.188 kB / 492 MB, free: 24.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003342/0.258, allocations: 136.2 kB / 492.1 MB, free: 24.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002725/0.2583, allocations: 143.9 kB / 492.3 MB, free: 24.37 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 diesel.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.2596, allocations: 0.9323 MB / 493.2 MB, free: 23.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002872/0.2599, allocations: 309.6 kB / 493.5 MB, free: 23.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.2601, allocations: 85.83 kB / 493.6 MB, free: 23.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.965e-05/0.2602, allocations: 131.9 kB / 493.7 MB, free: 23.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002051/0.2604, allocations: 190.8 kB / 493.9 MB, free: 23.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.2604, allocations: 30.11 kB / 493.9 MB, free: 23.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002935/0.2607, allocations: 207.5 kB / 494.1 MB, free: 23.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.607e-05/0.2608, allocations: 69.31 kB / 494.2 MB, free: 23.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.2609, allocations: 143.3 kB / 494.4 MB, free: 23.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004511/0.2613, allocations: 468.9 kB / 494.8 MB, free: 22.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2613, allocations: 4 kB / 494.8 MB, free: 22.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2613, allocations: 0 / 494.8 MB, free: 22.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.2613, allocations: 0 / 494.8 MB, free: 22.7 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.001845/0.2632, allocations: 0.8005 MB / 495.6 MB, free: 22.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.2632, allocations: 13.89 kB / 495.6 MB, free: 22.05 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.252e-05/0.2633, allocations: 67.62 kB / 495.7 MB, free: 21.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.16e-05/0.2633, allocations: 39.56 kB / 495.7 MB, free: 21.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002588/0.2636, allocations: 264.1 kB / 496 MB, free: 21.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.597e-05/0.2637, allocations: 81.34 kB / 496.1 MB, free: 21.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.822e-05/0.2637, allocations: 25.22 kB / 496.1 MB, free: 21.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004599/0.2642, allocations: 354.4 kB / 496.4 MB, free: 21.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.2642, allocations: 1.281 kB / 496.4 MB, free: 21.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.2642, allocations: 14.62 kB / 496.5 MB, free: 21.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.2642, allocations: 5.781 kB / 496.5 MB, free: 21.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004246/0.2646, allocations: 335.5 kB / 496.8 MB, free: 21.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.2658, allocations: 1.305 MB / 498.1 MB, free: 20.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008609/0.2667, allocations: 0.5129 MB / 498.6 MB, free: 19.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002562/0.267, allocations: 190 kB / 498.8 MB, free: 19.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.997e-05/0.267, allocations: 14.16 kB / 498.8 MB, free: 19.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004236/0.2674, allocations: 266.5 kB / 499.1 MB, free: 19.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.513e-06/0.2674, allocations: 0 / 499.1 MB, free: 19.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.002608/0.27, allocations: 1.051 MB / 0.4884 GB, free: 18.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.367e-05/0.2701, allocations: 60.53 kB / 0.4885 GB, free: 18.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.2702, allocations: 193.5 kB / 0.4886 GB, free: 18.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.2702, allocations: 39.98 kB / 0.4887 GB, free: 18.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.336e-05/0.2703, allocations: 138.1 kB / 0.4888 GB, free: 18.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.869e-05/0.2704, allocations: 151.8 kB / 0.489 GB, free: 18.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.2705, allocations: 76.75 kB / 0.489 GB, free: 18.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.788e-05/0.2705, allocations: 332.4 kB / 0.4893 GB, free: 17.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002516/0.2708, allocations: 176.2 kB / 0.4895 GB, free: 17.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.2711, allocations: 227.8 kB / 0.4897 GB, free: 17.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005144/0.2716, allocations: 406.4 kB / 0.4901 GB, free: 17.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2716, allocations: 0 / 0.4901 GB, free: 17.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001342/0.2729, allocations: 0.7027 MB / 0.4908 GB, free: 17.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.2729, allocations: 5.469 kB / 0.4908 GB, free: 17.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2729, allocations: 1.469 kB / 0.4908 GB, free: 17.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.2741, allocations: 306.5 kB / 0.4911 GB, free: 16.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001999/0.2743, allocations: 63.34 kB / 0.4912 GB, free: 16.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00327/0.2775, allocations: 2.968 MB / 0.4941 GB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.2777, allocations: 34.95 kB / 0.4941 GB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.976e-05/0.2778, allocations: 18.36 kB / 0.4941 GB, free: 14.4 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: 2 ($whenCondition1,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001212/0.2779, allocations: 151.5 kB / 0.4943 GB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.878e-05/0.2779, allocations: 29.67 kB / 0.4943 GB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001423/0.2793, allocations: 0.7081 MB / 0.495 GB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.2794, allocations: 5.031 kB / 0.495 GB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.2794, allocations: 0 / 0.495 GB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.2794, allocations: 13.27 kB / 0.495 GB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00176/0.2811, allocations: 1.24 MB / 0.4962 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.2811, allocations: 0 / 0.4962 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.2813, allocations: 52.72 kB / 0.4963 GB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001008/0.2823, allocations: 306.1 kB / 0.4965 GB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.452e-05/0.2823, allocations: 15.17 kB / 0.4966 GB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003/0.2853, allocations: 2.923 MB / 0.4994 GB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2853, allocations: 3.984 kB / 0.4994 GB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001319/0.2866, allocations: 0.769 MB / 0.5002 GB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.691e-05/0.2867, allocations: 101.7 kB / 0.5003 GB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.8e-05/0.2867, allocations: 14.48 kB / 0.5003 GB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.2869, allocations: 15.72 kB / 0.5003 GB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.462e-05/0.287, allocations: 46.06 kB / 0.5003 GB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.784e-05/0.2871, allocations: 13.81 kB / 0.5004 GB, free: 9.676 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001052/0.2872, allocations: 140 kB / 0.5005 GB, free: 9.566 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2872, allocations: 4 kB / 0.5005 GB, free: 9.562 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004596/0.2876, allocations: 132.8 kB / 0.5006 GB, free: 9.535 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: 2 ($whenCondition1,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001519/0.2891, allocations: 1.319 MB / 0.5019 GB, free: 8.508 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.2903, allocations: 0.6873 MB / 0.5026 GB, free: 8.098 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2903, allocations: 0 / 0.5026 GB, free: 8.098 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007664/0.2911, allocations: 470.1 kB / 0.503 GB, free: 7.812 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.2914, allocations: 41.08 kB / 0.5031 GB, free: 7.781 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004671/0.2961, allocations: 3.54 MB / 0.5065 GB, free: 5.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001735/0.2963, allocations: 0.7657 MB / 0.5073 GB, free: 4.457 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.2964, allocations: 46.86 kB / 0.5073 GB, free: 4.414 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.2965, allocations: 91.41 kB / 0.5074 GB, free: 4.324 MB / 366.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2965, allocations: 0 / 0.5074 GB, free: 4.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03933/0.3359, allocations: 10.06 MB / 0.5172 GB, free: 10.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.75, allocations: 10.28 kB / 0.5172 GB, free: 10.4 MB / 382.1 MB " [Timeout remaining time 648] (rm -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.118270555045456] Failed to read output from testmodel.py, exit status != 0: 11.841632646042854 11.854697238 11.590752021 Calling exit ...