Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",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.0008357/0.0008358, allocations: 94.38 kB / 16.65 MB, free: 6.586 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.0009072/0.0009073, allocations: 184 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.4 MB / 223.7 MB, free: 13.09 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1652/0.1652, allocations: 38.05 MB / 310.1 MB, free: 6.004 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005424/0.0005424, allocations: 23.98 kB / 377.3 MB, free: 2.707 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3121, allocations: 56.33 MB / 433.6 MB, free: 18.67 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004369/0.3165, allocations: 4.679 MB / 438.3 MB, free: 13.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.3185, allocations: 1.641 MB / 439.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001678/0.3187, allocations: 23.81 kB / 439.9 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.3189, allocations: 59.55 kB / 440 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003824/0.3193, allocations: 235.1 kB / 440.2 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.3197, allocations: 211.6 kB / 440.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004815/0.3202, allocations: 0.877 MB / 441.3 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006817/0.3209, allocations: 0.5426 MB / 441.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.3211, allocations: 207 kB / 442.1 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004067/0.3215, allocations: 350.9 kB / 442.4 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.183e-05/0.3216, allocations: 24 kB / 442.4 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003321/0.3219, allocations: 239.5 kB / 442.7 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001433/0.3221, allocations: 215.5 kB / 442.9 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.3223, allocations: 260.4 kB / 443.1 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004933/0.3228, allocations: 0.6307 MB / 443.7 MB, free: 8.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3228, allocations: 0 / 443.7 MB, free: 8.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3228, allocations: 4 kB / 443.7 MB, free: 8.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.3228, allocations: 0 / 443.7 MB, free: 8.441 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001074/0.3239, allocations: 0.6959 MB / 444.4 MB, free: 7.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.3239, allocations: 8.031 kB / 444.5 MB, free: 7.688 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.464e-05/0.324, allocations: 86.7 kB / 444.5 MB, free: 7.594 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005396/0.3246, allocations: 88.22 kB / 444.6 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004761/0.3251, allocations: 407.2 kB / 445 MB, free: 7.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/0.3251, allocations: 29.36 kB / 445.1 MB, free: 7.043 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.3252, allocations: 55.92 kB / 445.1 MB, free: 6.988 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007748/0.326, allocations: 0.6648 MB / 445.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.326, allocations: 11.94 kB / 445.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.306e-05/0.3261, allocations: 16 kB / 445.8 MB, free: 6.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001547/0.3263, allocations: 56.89 kB / 445.9 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007991/0.3271, allocations: 0.6713 MB / 446.5 MB, free: 5.531 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002675/0.3297, allocations: 2.517 MB / 449 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004405/0.3302, allocations: 341.3 kB / 449.4 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.3304, allocations: 233.7 kB / 449.6 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.3305, allocations: 7.938 kB / 449.6 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.3305, allocations: 38.56 kB / 449.6 MB, free: 2.242 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 1.804e-06/0.3305, allocations: 7.875 kB / 449.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.00166/0.3322, allocations: 1.348 MB / 451 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.3322, allocations: 81.14 kB / 451.1 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/0.3325, allocations: 308.4 kB / 451.4 MB, free: 428 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/0.3325, allocations: 29.7 kB / 451.4 MB, free: 392 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.3326, allocations: 251.6 kB / 451.7 MB, free: 136 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.3327, allocations: 150 kB / 451.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.326e-05/0.3328, allocations: 53.69 kB / 451.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.333, allocations: 346.8 kB / 452.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003063/0.3333, allocations: 205 kB / 452.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004301/0.3338, allocations: 365.2 kB / 452.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000743/0.3345, allocations: 0.6021 MB / 453.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3345, allocations: 4 kB / 453.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009055/0.3354, allocations: 0.6267 MB / 454 MB, free: 13.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.3355, allocations: 8 kB / 454 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.3355, allocations: 7.984 kB / 454 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.3355, allocations: 8 kB / 454 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004029/0.3359, allocations: 115.8 kB / 454.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.388e-05/0.3359, allocations: 8 kB / 454.1 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002167/0.3362, allocations: 27.89 kB / 454.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.489e-05/0.3362, allocations: 23.98 kB / 454.2 MB, free: 13.44 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002035/0.3364, allocations: 221.7 kB / 454.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.36e-05/0.3365, allocations: 35.56 kB / 454.4 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006833/0.3372, allocations: 0.4896 MB / 454.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.966e-05/0.3372, allocations: 12 kB / 454.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3372, allocations: 3.984 kB / 454.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3373, allocations: 3.984 kB / 454.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.3389, allocations: 1.101 MB / 456 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.339, allocations: 0 / 456 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003342/0.3393, allocations: 75.83 kB / 456.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3393, allocations: 0 / 456.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.3394, allocations: 8 kB / 456.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.3394, allocations: 7.938 kB / 456.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3394, allocations: 3.938 kB / 456.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.3404, allocations: 0.8322 MB / 457 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.88e-05/0.3405, allocations: 116.6 kB / 457.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.984e-05/0.3406, allocations: 8 kB / 457.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001884/0.3408, allocations: 19.98 kB / 457.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.137e-05/0.3408, allocations: 27.84 kB / 457.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/0.3409, allocations: 12 kB / 457.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002086/0.3411, allocations: 215 kB / 457.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3411, allocations: 0 / 457.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004405/0.3415, allocations: 108 kB / 457.5 MB, free: 10.04 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.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 (33): * Single equations (assignments): 30 * 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.001422/0.343, allocations: 1.384 MB / 458.8 MB, free: 8.609 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006877/0.3437, allocations: 499.5 kB / 459.3 MB, free: 8.121 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3437, allocations: 0 / 459.3 MB, free: 8.121 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002846/0.344, allocations: 225.3 kB / 459.6 MB, free: 7.902 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005449/0.3445, allocations: 69.5 kB / 459.6 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005408/0.3499, allocations: 4.661 MB / 464.3 MB, free: 2.938 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000514/0.3505, allocations: 0.8742 MB / 465.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003757/0.3509, allocations: 139.1 kB / 465.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002028/0.3511, allocations: 139.4 kB / 465.4 MB, free: 1.766 MB / 334.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3511, allocations: 0 / 465.4 MB, free: 1.766 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.3703, allocations: 7.304 MB / 472.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002818/0.3707, allocations: 206.2 kB / 472.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.962/2.333, allocations: 0 / 472.9 MB, free: 10.24 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)