Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.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/Modelica 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/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Machines_PSAT_Order4test2_perturbation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Machines_PSAT_Order4test2_perturbation",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.0006364/0.0006364, allocations: 91.69 kB / 15.36 MB, free: 0.7383 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.163/1.163, allocations: 223.3 MB / 239.3 MB, free: 5.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008705/0.0008705, allocations: 180.5 kB / 290.6 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.3991/0.3991, allocations: 78.56 MB / 420.3 MB, free: 4.254 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003096/0.0003096, allocations: 16 kB / 0.4888 GB, free: 5.914 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1025, allocations: 69.34 MB / 0.5565 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation): time 0.176/0.2786, allocations: 6.35 MB / 0.5627 GB, free: 35.68 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002771/0.2814, allocations: 1.901 MB / 0.5645 GB, free: 34.9 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007642/0.2821, allocations: 12.38 kB / 0.5646 GB, free: 34.9 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004563/0.2826, allocations: 172 kB / 0.5647 GB, free: 34.84 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001426/0.284, allocations: 0.6255 MB / 0.5653 GB, free: 34.54 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation Generator.xq <> Generator.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.0009511/0.285, allocations: 0.5714 MB / 0.5659 GB, free: 34.44 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00085/0.2859, allocations: 1.351 MB / 0.5672 GB, free: 34.11 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003121/0.2862, allocations: 286.4 kB / 0.5675 GB, free: 34.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003658/0.2866, allocations: 0.5166 MB / 0.568 GB, free: 33.91 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004634/0.287, allocations: 0.6651 MB / 0.5686 GB, free: 33.7 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.142e-05/0.2871, allocations: 57.69 kB / 0.5687 GB, free: 33.7 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000282/0.2874, allocations: 185.2 kB / 0.5689 GB, free: 33.69 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.2876, allocations: 222.7 kB / 0.5691 GB, free: 33.62 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003/0.2879, allocations: 0.5872 MB / 0.5696 GB, free: 33.35 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007713/0.2886, allocations: 1.432 MB / 0.571 GB, free: 32.97 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.2886, allocations: 0 / 0.571 GB, free: 32.97 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2887, allocations: 2.406 kB / 0.571 GB, free: 32.97 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.2887, allocations: 5.5 kB / 0.5711 GB, free: 32.97 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.006195/0.2949, allocations: 2.393 MB / 0.5734 GB, free: 32.11 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.2949, allocations: 12.06 kB / 0.5734 GB, free: 32.11 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001228/0.295, allocations: 127.6 kB / 0.5735 GB, free: 32.07 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004357/0.2994, allocations: 0.7832 MB / 0.5743 GB, free: 31.97 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007129/0.3001, allocations: 0.7668 MB / 0.575 GB, free: 31.56 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002058/0.3003, allocations: 274.8 kB / 0.5753 GB, free: 31.36 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.3005, allocations: 79.03 kB / 0.5754 GB, free: 31.36 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001982/0.3025, allocations: 1.173 MB / 0.5765 GB, free: 31.29 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.3025, allocations: 0 / 0.5765 GB, free: 31.29 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.369e-05/0.3026, allocations: 32.12 kB / 0.5766 GB, free: 31.29 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.3026, allocations: 20.66 kB / 0.5766 GB, free: 31.29 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002195/0.3048, allocations: 1.245 MB / 0.5778 GB, free: 31.26 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004359/0.3092, allocations: 3.531 MB / 0.5812 GB, free: 30.24 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001871/0.311, allocations: 1.524 MB / 0.5827 GB, free: 29.54 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001433/0.3125, allocations: 0.8757 MB / 0.5836 GB, free: 29.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.343e-05/0.3126, allocations: 23.11 kB / 0.5836 GB, free: 29.22 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.498e-05/0.3126, allocations: 38.16 kB / 0.5836 GB, free: 29.18 MB / 430.1 MB Notification: Performance of pre-optimization done (n=98): time 1.904e-06/0.3126, allocations: 0 / 0.5836 GB, free: 29.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=98): time 0.0253/0.3379, allocations: 8.211 MB / 0.5917 GB, free: 27.74 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/0.338, allocations: 65.91 kB / 0.5917 GB, free: 27.67 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009301/0.3389, allocations: 0.8927 MB / 0.5926 GB, free: 27.29 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.102e-05/0.339, allocations: 41.73 kB / 0.5926 GB, free: 27.25 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002342/0.3392, allocations: 499.1 kB / 0.5931 GB, free: 26.86 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/0.3395, allocations: 351.4 kB / 0.5934 GB, free: 26.58 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.3396, allocations: 104.4 kB / 0.5935 GB, free: 26.53 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.296e-05/0.3397, allocations: 357.6 kB / 0.5939 GB, free: 26.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001651/0.3413, allocations: 0.825 MB / 0.5947 GB, free: 25.93 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001703/0.3431, allocations: 0.9533 MB / 0.5956 GB, free: 25.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01833/0.3614, allocations: 5.413 MB / 0.6009 GB, free: 24.16 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.3614, allocations: 1.312 kB / 0.6009 GB, free: 24.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.01449/0.3759, allocations: 5.224 MB / 0.606 GB, free: 23.01 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.3759, allocations: 6.375 kB / 0.606 GB, free: 23.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.376, allocations: 2.844 kB / 0.606 GB, free: 23.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006133/0.3821, allocations: 2.037 MB / 0.608 GB, free: 22.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00095/0.3831, allocations: 245.2 kB / 0.6082 GB, free: 22.65 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01817/0.4012, allocations: 9.325 MB / 0.6173 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.4025, allocations: 226.8 kB / 0.6176 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.989e-05/0.4026, allocations: 42.42 kB / 0.6176 GB, free: 14.76 MB / 430.1 MB Warning: Assuming fixed start value for the following 1 variables: Generator.e1q:VARIABLE(start = Generator.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 116 * 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 {(24,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0003611/0.4029, allocations: 245.4 kB / 0.6178 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.4031, allocations: 118.5 kB / 0.618 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0126/0.4157, allocations: 4.959 MB / 0.6228 GB, free: 9.418 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.4157, allocations: 8 kB / 0.6228 GB, free: 9.41 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.4157, allocations: 0 / 0.6228 GB, free: 9.41 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/0.4157, allocations: 3.984 kB / 0.6228 GB, free: 9.406 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01356/0.4293, allocations: 6.557 MB / 0.6292 GB, free: 2.711 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.4293, allocations: 0 / 0.6292 GB, free: 2.711 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006191/0.4299, allocations: 151.8 kB / 0.6294 GB, free: 2.562 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005439/0.4354, allocations: 2.052 MB / 0.6314 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-05/0.4355, allocations: 20 kB / 0.6314 GB, free: 500 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01759/0.4531, allocations: 8.212 MB / 0.6394 GB, free: 8.137 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4531, allocations: 0 / 0.6394 GB, free: 8.137 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01592/0.469, allocations: 5.993 MB / 0.6452 GB, free: 2.117 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000263/0.4693, allocations: 204.4 kB / 0.6454 GB, free: 1.898 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.4694, allocations: 19.94 kB / 0.6455 GB, free: 1.879 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.4705, allocations: 155.9 kB / 0.6456 GB, free: 1.727 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000551/0.471, allocations: 210.2 kB / 0.6458 GB, free: 1.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.78e-05/0.4711, allocations: 31.98 kB / 0.6458 GB, free: 1.488 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006794/0.4718, allocations: 0.5969 MB / 0.6464 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4718, allocations: 0 / 0.6464 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00107/0.4729, allocations: 435.5 kB / 0.6468 GB, free: 468 kB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Generator.delta,Generator.w,Generator.e1q,Generator.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 64 * 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 {(26,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01629/0.4892, allocations: 6.591 MB / 0.6533 GB, free: 9.832 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006892/0.4961, allocations: 2.769 MB / 0.656 GB, free: 7.055 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4961, allocations: 0 / 0.656 GB, free: 7.055 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004755/0.5009, allocations: 1.806 MB / 0.6577 GB, free: 5.234 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006356/0.5015, allocations: 88.42 kB / 0.6578 GB, free: 5.148 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03841/0.5399, allocations: 18.44 MB / 0.6758 GB, free: 2.344 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005729/0.5405, allocations: 1.103 MB / 0.6769 GB, free: 1.215 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003356/0.5409, allocations: 85.36 kB / 0.677 GB, free: 1.129 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000517/0.5414, allocations: 439.3 kB / 0.6774 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of SimCode: time 9.11e-07/0.5414, allocations: 0 / 0.6774 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04287/0.5843, allocations: 29.94 MB / 0.7067 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.5845, allocations: 228.3 kB / 0.7069 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.303/2.887, allocations: 0 / 0.7069 GB, free: 2.879 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe ; mkfifo OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe >> ../files/OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Tests_Machines_PSAT_Order4test2_perturbation_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Tests_Machines_PSAT_Order4test2_perturbation.fmu > OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe 2>&1)