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.001041/0.001041, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.294/1.294, allocations: 222.9 MB / 239 MB, free: 4.758 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.001321/0.001321, allocations: 192.4 kB / 289.2 MB, free: 2.488 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4122/0.4122, allocations: 78.53 MB / 417.9 MB, free: 3.336 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 71.89 kB / 497 MB, free: 6.664 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1158, allocations: 68.17 MB / 0.552 GB, free: 2.449 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation): time 0.1929/0.3087, allocations: 6.804 MB / 0.5586 GB, free: 35.86 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00349/0.3122, allocations: 1.915 MB / 0.5605 GB, free: 35.31 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001113/0.3134, allocations: 18.09 kB / 0.5605 GB, free: 35.31 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008042/0.3142, allocations: 163.2 kB / 0.5607 GB, free: 35.3 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001974/0.3162, allocations: 0.6289 MB / 0.5613 GB, free: 35.16 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.001203/0.3174, allocations: 0.5705 MB / 0.5618 GB, free: 35.08 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001342/0.3188, allocations: 1.412 MB / 0.5632 GB, free: 35.01 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003742/0.3192, allocations: 323.9 kB / 0.5635 GB, free: 34.97 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005261/0.3197, allocations: 0.6004 MB / 0.5641 GB, free: 34.83 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005182/0.3202, allocations: 0.7295 MB / 0.5648 GB, free: 34.64 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001202/0.3204, allocations: 101.2 kB / 0.5649 GB, free: 34.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003868/0.3208, allocations: 237.9 kB / 0.5651 GB, free: 34.63 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.3209, allocations: 283.2 kB / 0.5654 GB, free: 34.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003577/0.3213, allocations: 0.6297 MB / 0.566 GB, free: 34.32 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001053/0.3223, allocations: 1.505 MB / 0.5675 GB, free: 33.95 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3224, allocations: 0 / 0.5675 GB, free: 33.95 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3224, allocations: 0.625 kB / 0.5675 GB, free: 33.95 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.3224, allocations: 0 / 0.5675 GB, free: 33.95 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.006838/0.3292, allocations: 2.557 MB / 0.57 GB, free: 33.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.3293, allocations: 13.53 kB / 0.57 GB, free: 33.04 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001345/0.3294, allocations: 127.8 kB / 0.5701 GB, free: 33 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004562/0.334, allocations: 0.7842 MB / 0.5709 GB, free: 32.91 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009258/0.3349, allocations: 0.7703 MB / 0.5716 GB, free: 32.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.3351, allocations: 258.1 kB / 0.5719 GB, free: 32.3 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.3353, allocations: 78.28 kB / 0.572 GB, free: 32.3 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002012/0.3373, allocations: 1.083 MB / 0.573 GB, free: 32.24 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.3373, allocations: 0.5156 kB / 0.573 GB, free: 32.24 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.602e-05/0.3374, allocations: 34.69 kB / 0.573 GB, free: 32.24 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.3375, allocations: 19.64 kB / 0.5731 GB, free: 32.24 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002143/0.3396, allocations: 1.129 MB / 0.5742 GB, free: 32.22 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.004878/0.3445, allocations: 3.46 MB / 0.5776 GB, free: 31.04 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001748/0.3462, allocations: 1.433 MB / 0.5789 GB, free: 30.11 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001348/0.3476, allocations: 0.7828 MB / 0.5797 GB, free: 29.82 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001147/0.3477, allocations: 25.11 kB / 0.5797 GB, free: 29.8 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.3478, allocations: 42.16 kB / 0.5798 GB, free: 29.75 MB / 430.1 MB Notification: Performance of pre-optimization done (n=98): time 3.226e-06/0.3478, allocations: 0 / 0.5798 GB, free: 29.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=98): time 0.02351/0.3713, allocations: 6.609 MB / 0.5862 GB, free: 28.5 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.3714, allocations: 61.88 kB / 0.5863 GB, free: 28.44 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.3724, allocations: 0.8898 MB / 0.5872 GB, free: 28.07 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001926/0.3726, allocations: 41.67 kB / 0.5872 GB, free: 28.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.3729, allocations: 496.4 kB / 0.5877 GB, free: 27.63 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002742/0.3732, allocations: 351.3 kB / 0.588 GB, free: 27.36 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003853/0.3736, allocations: 204.6 kB / 0.5882 GB, free: 27.26 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.926e-05/0.3737, allocations: 359.1 kB / 0.5885 GB, free: 26.93 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001518/0.3752, allocations: 0.7308 MB / 0.5893 GB, free: 26.67 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/0.3768, allocations: 0.8648 MB / 0.5901 GB, free: 26.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0185/0.3953, allocations: 4.865 MB / 0.5949 GB, free: 24.95 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-06/0.3953, allocations: 1.406 kB / 0.5949 GB, free: 24.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.01416/0.4095, allocations: 4.277 MB / 0.599 GB, free: 23.92 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.4096, allocations: 9.531 kB / 0.599 GB, free: 23.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.4096, allocations: 3.594 kB / 0.599 GB, free: 23.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005894/0.4155, allocations: 1.725 MB / 0.6007 GB, free: 23.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.4167, allocations: 232.1 kB / 0.601 GB, free: 23.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02008/0.4368, allocations: 9.07 MB / 0.6098 GB, free: 19.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.4384, allocations: 182.4 kB / 0.61 GB, free: 18.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002257/0.4386, allocations: 41.27 kB / 0.61 GB, free: 18.9 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.0005946/0.4392, allocations: 236.2 kB / 0.6102 GB, free: 18.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003075/0.4396, allocations: 124.3 kB / 0.6104 GB, free: 18.64 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01176/0.4513, allocations: 4.013 MB / 0.6143 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.575e-05/0.4514, allocations: 8.516 kB / 0.6143 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4514, allocations: 0 / 0.6143 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.977e-05/0.4514, allocations: 7.984 kB / 0.6143 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01346/0.4649, allocations: 5.603 MB / 0.6198 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.281e-05/0.4649, allocations: 7.984 kB / 0.6198 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007518/0.4657, allocations: 128.9 kB / 0.6199 GB, free: 9.426 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005115/0.4708, allocations: 1.748 MB / 0.6216 GB, free: 7.676 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001892/0.471, allocations: 19.98 kB / 0.6216 GB, free: 7.656 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01601/0.4871, allocations: 8.065 MB / 0.6295 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.4871, allocations: 0 / 0.6295 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01473/0.5018, allocations: 4.957 MB / 0.6343 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003808/0.5022, allocations: 203.4 kB / 0.6345 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003405/0.5026, allocations: 16.88 kB / 0.6346 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.5038, allocations: 111.9 kB / 0.6347 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000771/0.5046, allocations: 216.7 kB / 0.6349 GB, free: 9.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.5047, allocations: 23.98 kB / 0.6349 GB, free: 9.887 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008039/0.5055, allocations: 0.6008 MB / 0.6355 GB, free: 9.277 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.212e-06/0.5055, allocations: 4 kB / 0.6355 GB, free: 9.273 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001458/0.507, allocations: 447.4 kB / 0.6359 GB, free: 8.836 MB / 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.01477/0.5218, allocations: 5.534 MB / 0.6413 GB, free: 3.262 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007258/0.5291, allocations: 2.508 MB / 0.6438 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.5291, allocations: 64 / 0.6438 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004698/0.5338, allocations: 1.6 MB / 0.6453 GB, free: 15.13 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.5349, allocations: 89.06 kB / 0.6454 GB, free: 15.05 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04018/0.5751, allocations: 16.39 MB / 0.6614 GB, free: 14.29 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008436/0.5759, allocations: 1.099 MB / 0.6625 GB, free: 13.16 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005403/0.5765, allocations: 90.95 kB / 0.6626 GB, free: 13.07 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007011/0.5772, allocations: 447.3 kB / 0.663 GB, free: 12.63 MB / 478.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5772, allocations: 0 / 0.663 GB, free: 12.63 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0558/0.633, allocations: 31.9 MB / 0.6942 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/0.6333, allocations: 229.7 kB / 0.6944 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.553/3.187, allocations: 0 / 0.6944 GB, free: 12.86 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)