Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) 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.OneSourceOneLigneWithFault,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceOneLigneWithFault,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 109.4 kB / 16.32 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001238/0.001237, allocations: 190.4 kB / 17.24 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04966/0.04966, allocations: 8.102 MB / 299.2 MB, free: 6.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 63.91 kB / 361.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2509, allocations: 51.51 MB / 413.3 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.002906/0.2539, allocations: 1.91 MB / 415.3 MB, free: 23.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.2557, allocations: 1.598 MB / 416.9 MB, free: 22.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.2558, allocations: 8 kB / 416.9 MB, free: 22.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003493/0.2562, allocations: 135.2 kB / 417 MB, free: 21.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003055/0.2565, allocations: 159 kB / 417.1 MB, free: 21.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001265/0.2578, allocations: 0.8557 MB / 418 MB, free: 20.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003522/0.2582, allocations: 346.5 kB / 418.3 MB, free: 20.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002012/0.2584, allocations: 126.9 kB / 418.5 MB, free: 20.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.2585, allocations: 139.5 kB / 418.6 MB, free: 20.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.2587, allocations: 187.3 kB / 418.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.067e-05/0.2588, allocations: 32 kB / 418.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000311/0.2591, allocations: 219.8 kB / 419 MB, free: 19.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.797e-05/0.2591, allocations: 71.69 kB / 419.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.2593, allocations: 175.2 kB / 419.3 MB, free: 19.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004421/0.2597, allocations: 0.5047 MB / 419.8 MB, free: 19.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2597, allocations: 0 / 419.8 MB, free: 19.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2597, allocations: 0 / 419.8 MB, free: 19.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.2597, allocations: 0 / 419.8 MB, free: 19.12 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002241/0.262, allocations: 0.9217 MB / 420.7 MB, free: 18.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.262, allocations: 11.89 kB / 420.7 MB, free: 18.13 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.677e-05/0.2621, allocations: 58.73 kB / 420.8 MB, free: 18.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002197/0.2623, allocations: 48.53 kB / 420.8 MB, free: 18.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002672/0.2626, allocations: 315.7 kB / 421.1 MB, free: 17.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.2626, allocations: 16.81 kB / 421.1 MB, free: 17.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.2627, allocations: 28.38 kB / 421.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004232/0.2631, allocations: 335.7 kB / 421.5 MB, free: 17.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2631, allocations: 3.938 kB / 421.5 MB, free: 17.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.2631, allocations: 8 kB / 421.5 MB, free: 17.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.2632, allocations: 8 kB / 421.5 MB, free: 17.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003748/0.2635, allocations: 321.6 kB / 421.8 MB, free: 16.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.2649, allocations: 1.365 MB / 423.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007236/0.2656, allocations: 0.517 MB / 423.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.2659, allocations: 201.1 kB / 423.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007655/0.2667, allocations: 0.9089 MB / 424.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003789/0.2671, allocations: 358.6 kB / 425.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.653e-06/0.2671, allocations: 0 / 425.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002765/0.2698, allocations: 1.106 MB / 426.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.5e-05/0.2699, allocations: 195.9 kB / 426.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.2701, allocations: 257 kB / 426.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.2702, allocations: 37.7 kB / 426.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.357e-05/0.2703, allocations: 164.4 kB / 426.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.953e-05/0.2703, allocations: 106.5 kB / 427 MB, free: 11.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.2705, allocations: 82.11 kB / 427.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.748e-05/0.2705, allocations: 334.8 kB / 427.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002333/0.2708, allocations: 188.8 kB / 427.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002698/0.271, allocations: 272.8 kB / 427.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00421/0.2753, allocations: 1.423 MB / 429.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.2753, allocations: 0 / 429.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001585/0.2769, allocations: 0.8273 MB / 430.1 MB, free: 8.176 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.566e-05/0.2769, allocations: 37.69 kB / 430.2 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.2769, allocations: 7.984 kB / 430.2 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001184/0.2781, allocations: 316.5 kB / 430.5 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.2784, allocations: 59.91 kB / 430.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003193/0.2816, allocations: 2.936 MB / 433.5 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003344/0.2819, allocations: 47.56 kB / 433.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.218e-05/0.282, allocations: 20 kB / 433.5 MB, free: 4.609 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: lnFault.myFault.fault:DISCRETE(start = false fixed = true ) "true means the fault is active" type: Boolean lnFault.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real lnFault.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: 10 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.lnFault.myFault.fault,lnFault.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.lnFault.myFault.Y.re,$PRE.lnFault.myFault.Y.im,lnFault.myFault.Y.im,lnFault.myFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003147/0.2823, allocations: 201.6 kB / 433.7 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.544e-05/0.2823, allocations: 27.72 kB / 433.8 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001501/0.2838, allocations: 0.7487 MB / 434.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.2839, allocations: 3.938 kB / 434.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2839, allocations: 7.938 kB / 434.5 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.2839, allocations: 3.984 kB / 434.5 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003376/0.2842, allocations: 473 kB / 435 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2842, allocations: 0 / 435 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.846e-05/0.2843, allocations: 23.98 kB / 435 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/0.2854, allocations: 312.5 kB / 435.3 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.2855, allocations: 11.94 kB / 435.3 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003228/0.2887, allocations: 2.926 MB / 438.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2887, allocations: 0 / 438.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.2904, allocations: 0.745 MB / 439 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.2905, allocations: 108.8 kB / 439.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.254e-05/0.2906, allocations: 8 kB / 439.1 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.2908, allocations: 15.98 kB / 439.1 MB, free: 14.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.977e-05/0.2909, allocations: 27.97 kB / 439.2 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.822e-05/0.291, allocations: 15.94 kB / 439.2 MB, free: 14.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002145/0.2912, allocations: 188.5 kB / 439.4 MB, free: 14.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2912, allocations: 0 / 439.4 MB, free: 14.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005981/0.2918, allocations: 123.9 kB / 439.5 MB, free: 14.39 MB / 318.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,lnFault.myFault.Y.re,lnFault.myFault.Y.im,lnFault.myFault.fault) * Number of discrete states: 7 ($whenCondition4,lnFault.myFault.Y.im,lnFault.myFault.Y.re,$whenCondition3,$whenCondition2,lnFault.myFault.fault,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002058/0.2939, allocations: 1.307 MB / 440.8 MB, free: 13.05 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.2956, allocations: 0.7362 MB / 441.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.2956, allocations: 0.5 kB / 441.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.2967, allocations: 0.5213 MB / 442 MB, free: 11.74 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003156/0.297, allocations: 28.38 kB / 442.1 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006918/0.3039, allocations: 3.966 MB / 446 MB, free: 7.602 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.3044, allocations: 0.7691 MB / 446.8 MB, free: 6.805 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001309/0.3045, allocations: 26.45 kB / 446.8 MB, free: 6.773 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.3047, allocations: 95.39 kB / 446.9 MB, free: 6.684 MB / 318.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3047, allocations: 0 / 446.9 MB, free: 6.684 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03425/0.3389, allocations: 9.358 MB / 456.3 MB, free: 13.42 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.566/9.905, allocations: 9.562 kB / 456.3 MB, free: 13.41 MB / 334.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe 2>&1)