Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.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.001214/0.001214, allocations: 117 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.001203/0.001203, allocations: 196.5 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.387/1.387, allocations: 225.6 MB / 248.5 MB, free: 3.629 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.05315/0.05315, allocations: 8.221 MB / 311.6 MB, free: 2.121 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.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003159/0.003159, allocations: 67.88 kB / 434 MB, free: 11.81 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.285, allocations: 54.36 MB / 488.3 MB, free: 27.46 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.002919/0.2879, allocations: 2.454 MB / 490.8 MB, free: 25.54 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.29, allocations: 1.729 MB / 492.5 MB, free: 24.14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.2902, allocations: 6.375 kB / 492.5 MB, free: 24.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003998/0.2906, allocations: 162.2 kB / 492.7 MB, free: 24.03 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004061/0.291, allocations: 215 kB / 492.9 MB, free: 23.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001561/0.2925, allocations: 1.036 MB / 493.9 MB, free: 23.08 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005044/0.293, allocations: 484.8 kB / 494.4 MB, free: 22.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001908/0.2932, allocations: 121.5 kB / 494.5 MB, free: 22.7 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.2934, allocations: 187.9 kB / 494.7 MB, free: 22.6 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002826/0.2937, allocations: 259.2 kB / 494.9 MB, free: 22.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.165e-05/0.2937, allocations: 42.91 kB / 495 MB, free: 22.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004008/0.2941, allocations: 252.5 kB / 495.2 MB, free: 22.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.156e-05/0.2942, allocations: 96.58 kB / 495.3 MB, free: 22.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001727/0.2944, allocations: 237.8 kB / 495.6 MB, free: 22.08 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000643/0.295, allocations: 0.6458 MB / 496.2 MB, free: 21.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.295, allocations: 1.531 kB / 496.2 MB, free: 21.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.295, allocations: 0 / 496.2 MB, free: 21.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.295, allocations: 0 / 496.2 MB, free: 21.64 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003246/0.2983, allocations: 1.192 MB / 497.4 MB, free: 20.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.2983, allocations: 20.73 kB / 497.4 MB, free: 20.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.233e-05/0.2984, allocations: 65.33 kB / 497.5 MB, free: 20.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002616/0.2986, allocations: 65.31 kB / 497.5 MB, free: 20.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000383/0.299, allocations: 357.3 kB / 497.9 MB, free: 20.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.903e-05/0.2991, allocations: 30.94 kB / 497.9 MB, free: 20.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.376e-05/0.2991, allocations: 35.88 kB / 498 MB, free: 20.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006265/0.2997, allocations: 449.9 kB / 498.4 MB, free: 20.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.2998, allocations: 7.922 kB / 498.4 MB, free: 20.03 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.915e-05/0.2998, allocations: 16.25 kB / 498.4 MB, free: 20.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.2998, allocations: 7 kB / 498.4 MB, free: 20.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005964/0.3004, allocations: 446.3 kB / 498.9 MB, free: 19.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.3023, allocations: 1.987 MB / 0.4891 GB, free: 17.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009738/0.3033, allocations: 0.6443 MB / 0.4897 GB, free: 17.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003447/0.3036, allocations: 258.5 kB / 0.49 GB, free: 17.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.571e-05/0.3037, allocations: 13.58 kB / 0.49 GB, free: 17.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000633/0.3043, allocations: 476.4 kB / 0.4905 GB, free: 16.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.254e-06/0.3043, allocations: 0 / 0.4905 GB, free: 16.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.005338/0.3097, allocations: 1.778 MB / 0.4922 GB, free: 15.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.286e-05/0.3097, allocations: 196.7 kB / 0.4924 GB, free: 15.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003112/0.3101, allocations: 306.4 kB / 0.4927 GB, free: 15.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.283e-05/0.3101, allocations: 42.36 kB / 0.4927 GB, free: 15.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.293e-05/0.3102, allocations: 167.8 kB / 0.4929 GB, free: 15.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.3103, allocations: 173.3 kB / 0.493 GB, free: 15.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.3104, allocations: 105.6 kB / 0.4931 GB, free: 15.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.817e-05/0.3105, allocations: 351.5 kB / 0.4935 GB, free: 14.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003767/0.3109, allocations: 273.3 kB / 0.4937 GB, free: 14.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004485/0.3113, allocations: 347.9 kB / 0.4941 GB, free: 14.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006504/0.3178, allocations: 2.071 MB / 0.4961 GB, free: 13.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.3178, allocations: 13.03 kB / 0.4961 GB, free: 13.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002416/0.3203, allocations: 1.164 MB / 0.4972 GB, free: 12.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/0.3203, allocations: 36.45 kB / 0.4973 GB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.3203, allocations: 5.312 kB / 0.4973 GB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002018/0.3223, allocations: 0.524 MB / 0.4978 GB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.3226, allocations: 81.2 kB / 0.4979 GB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004766/0.3274, allocations: 3.954 MB / 0.5017 GB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003822/0.3278, allocations: 49.97 kB / 0.5018 GB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.673e-05/0.3278, allocations: 26.12 kB / 0.5018 GB, free: 9.012 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: line2.myFault.fault:DISCRETE(start = false fixed = true ) \"true means the fault is active\" type: Boolean line2.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) \"Real part of complex number\" type: Real line2.myFault.Y.im:DISCRETE(start = 0.0 fixed = true ) \"Imaginary part of complex number\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.line2.myFault.fault,line2.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.line2.myFault.Y.re,$PRE.line2.myFault.Y.im,line2.myFault.Y.im,line2.myFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0002472/0.328, allocations: 215.2 kB / 0.502 GB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.068e-05/0.3281, allocations: 44.08 kB / 0.502 GB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002301/0.3304, allocations: 1.108 MB / 0.5031 GB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3304, allocations: 4.938 kB / 0.5031 GB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.3304, allocations: 5.094 kB / 0.5031 GB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.3304, allocations: 3.984 kB / 0.5031 GB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002693/0.3331, allocations: 1.817 MB / 0.5049 GB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3331, allocations: 5.375 kB / 0.5049 GB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001489/0.3333, allocations: 54.08 kB / 0.505 GB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/0.3351, allocations: 0.5069 MB / 0.5055 GB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.3352, allocations: 12 kB / 0.5055 GB, free: 6.375 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004146/0.3393, allocations: 3.915 MB / 0.5093 GB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3393, allocations: 0 / 0.5093 GB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002111/0.3414, allocations: 1.165 MB / 0.5104 GB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.701e-05/0.3415, allocations: 128.7 kB / 0.5106 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.529e-05/0.3416, allocations: 15.94 kB / 0.5106 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003036/0.3419, allocations: 23.92 kB / 0.5106 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.342, allocations: 44.38 kB / 0.5106 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.421e-05/0.342, allocations: 16 kB / 0.5107 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001971/0.3422, allocations: 225.8 kB / 0.5109 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3422, allocations: 0 / 0.5109 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006118/0.3428, allocations: 187.9 kB / 0.5111 GB, free: 492 kB / 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: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,line2.myFault.Y.re,line2.myFault.Y.im,line2.myFault.fault) * Number of discrete states: 7 ($whenCondition4,line2.myFault.Y.im,line2.myFault.Y.re,$whenCondition3,$whenCondition2,line2.myFault.fault,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002856/0.3457, allocations: 1.746 MB / 0.5128 GB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001932/0.3476, allocations: 0.9261 MB / 0.5137 GB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3476, allocations: 0 / 0.5137 GB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001166/0.3488, allocations: 0.6022 MB / 0.5142 GB, free: 13.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004248/0.3492, allocations: 49.38 kB / 0.5143 GB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009273/0.3585, allocations: 5.215 MB / 0.5194 GB, free: 7.734 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000503/0.359, allocations: 0.8055 MB / 0.5202 GB, free: 6.902 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001937/0.3592, allocations: 55.42 kB / 0.5202 GB, free: 6.848 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001973/0.3594, allocations: 123.4 kB / 0.5203 GB, free: 6.73 MB / 382.1 MB Notification: Performance of SimCode: time 1.693e-06/0.3594, allocations: 0 / 0.5203 GB, free: 6.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06317/0.4226, allocations: 15.33 MB / 0.5353 GB, free: 7.555 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.04, allocations: 5.109 kB / 0.5353 GB, free: 7.551 MB / 398.1 MB " [Timeout remaining time 648] (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.51700876513496] Failed to read output from testmodel.py, exit status != 0: 12.13388870563358 12.154312969 11.855832397 Calling exit ...