Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order2test2_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.Order2test2_perturbation,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Machines_PSAT_Order2test2_perturbation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Machines_PSAT_Order2test2_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.006188/0.006188, allocations: 96.23 kB / 15.73 MB, free: 6.062 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.298/1.298, allocations: 222.9 MB / 239.4 MB, free: 4.504 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.001385/0.001385, allocations: 180.5 kB / 289.7 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4346/0.4346, allocations: 78.54 MB / 418.4 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 80.09 kB / 0.5532 GB, free: 1.445 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3159, allocations: 68.17 MB / 0.6197 GB, free: 9.324 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation): time 0.00503/0.3209, allocations: 6.372 MB / 0.626 GB, free: 3.754 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003084/0.324, allocations: 1.849 MB / 0.6278 GB, free: 1.898 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006952/0.3248, allocations: 8 kB / 0.6278 GB, free: 1.891 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005033/0.3253, allocations: 226 kB / 0.628 GB, free: 1.668 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001516/0.3268, allocations: 0.7658 MB / 0.6287 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.3279, allocations: 0.6007 MB / 0.6293 GB, free: 316 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001331/0.3293, allocations: 1.405 MB / 0.6307 GB, free: 14.9 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004272/0.3297, allocations: 328.3 kB / 0.631 GB, free: 14.57 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006644/0.3304, allocations: 0.5795 MB / 0.6316 GB, free: 13.99 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007179/0.3311, allocations: 0.7271 MB / 0.6323 GB, free: 13.26 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.3312, allocations: 100 kB / 0.6324 GB, free: 13.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004679/0.3317, allocations: 243.9 kB / 0.6326 GB, free: 12.92 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002229/0.332, allocations: 274.8 kB / 0.6329 GB, free: 12.65 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004823/0.3324, allocations: 0.6213 MB / 0.6335 GB, free: 12.03 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001584/0.334, allocations: 1.51 MB / 0.635 GB, free: 10.52 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3341, allocations: 0 / 0.635 GB, free: 10.52 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3341, allocations: 0 / 0.635 GB, free: 10.52 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.445e-05/0.3341, allocations: 0 / 0.635 GB, free: 10.52 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.007814/0.3419, allocations: 2.586 MB / 0.6375 GB, free: 7.871 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.342, allocations: 8.031 kB / 0.6375 GB, free: 7.863 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001538/0.3421, allocations: 130.8 kB / 0.6376 GB, free: 7.727 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004921/0.3471, allocations: 0.7796 MB / 0.6384 GB, free: 6.945 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001262/0.3483, allocations: 0.7771 MB / 0.6391 GB, free: 6.113 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002722/0.3486, allocations: 260.2 kB / 0.6394 GB, free: 5.824 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/0.3488, allocations: 80 kB / 0.6395 GB, free: 5.746 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002262/0.3511, allocations: 1.069 MB / 0.6405 GB, free: 4.672 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.3511, allocations: 0 / 0.6405 GB, free: 4.672 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.426e-05/0.3512, allocations: 36 kB / 0.6405 GB, free: 4.637 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.3512, allocations: 19.94 kB / 0.6406 GB, free: 4.617 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002405/0.3536, allocations: 1.12 MB / 0.6416 GB, free: 3.492 MB / 446.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.005457/0.3591, allocations: 3.433 MB / 0.645 GB, free: 15.9 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002171/0.3613, allocations: 1.419 MB / 0.6464 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.3629, allocations: 0.7735 MB / 0.6471 GB, free: 13.59 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.191e-05/0.363, allocations: 13 kB / 0.6472 GB, free: 13.58 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.363, allocations: 43.56 kB / 0.6472 GB, free: 13.53 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 3.136e-06/0.363, allocations: 0 / 0.6472 GB, free: 13.53 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.02594/0.389, allocations: 6.758 MB / 0.6538 GB, free: 6.738 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.389, allocations: 60.41 kB / 0.6538 GB, free: 6.664 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001069/0.3901, allocations: 0.8839 MB / 0.6547 GB, free: 5.762 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001743/0.3903, allocations: 41.7 kB / 0.6548 GB, free: 5.715 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000324/0.3906, allocations: 0.4935 MB / 0.6552 GB, free: 5.215 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003207/0.391, allocations: 352.9 kB / 0.6556 GB, free: 4.867 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003577/0.3913, allocations: 202.9 kB / 0.6558 GB, free: 4.66 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.3914, allocations: 349.8 kB / 0.6561 GB, free: 4.312 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001569/0.393, allocations: 0.7092 MB / 0.6568 GB, free: 3.605 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/0.3947, allocations: 0.8423 MB / 0.6576 GB, free: 2.73 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01831/0.413, allocations: 4.779 MB / 0.6623 GB, free: 13.91 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.4131, allocations: 0 / 0.6623 GB, free: 13.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.01368/0.4267, allocations: 4.266 MB / 0.6664 GB, free: 9.633 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.734e-05/0.4268, allocations: 8 kB / 0.6665 GB, free: 9.625 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.4268, allocations: 4 kB / 0.6665 GB, free: 9.621 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006266/0.4331, allocations: 1.85 MB / 0.6683 GB, free: 7.766 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.4342, allocations: 215.6 kB / 0.6685 GB, free: 7.555 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02166/0.4559, allocations: 9.097 MB / 0.6774 GB, free: 14.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/0.4576, allocations: 171.2 kB / 0.6775 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002275/0.4578, allocations: 43.98 kB / 0.6776 GB, free: 14.1 MB / 494.1 MB Warning: Assuming fixed start value for the following 2 variables: order2_Inputs_Outputs1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2_Inputs_Outputs1.delta:VARIABLE(flow=false start = order2_Inputs_Outputs1.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (108): * Single equations (assignments): 107 * 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 prepare postOptimizeDAE: time 0.0006504/0.4585, allocations: 245.5 kB / 0.6778 GB, free: 13.85 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003318/0.4588, allocations: 123.2 kB / 0.6779 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01336/0.4722, allocations: 4.01 MB / 0.6818 GB, free: 9.703 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.666e-05/0.4723, allocations: 8 kB / 0.6818 GB, free: 9.695 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.4723, allocations: 7.938 kB / 0.6818 GB, free: 9.688 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-05/0.4723, allocations: 7.969 kB / 0.6818 GB, free: 9.68 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01583/0.4881, allocations: 5.614 MB / 0.6873 GB, free: 3.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.501e-05/0.4882, allocations: 0 / 0.6873 GB, free: 3.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007919/0.489, allocations: 131.8 kB / 0.6875 GB, free: 3.801 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006233/0.4952, allocations: 1.738 MB / 0.6892 GB, free: 2.059 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002882/0.4956, allocations: 19.94 kB / 0.6892 GB, free: 2.039 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01942/0.515, allocations: 8.081 MB / 0.6971 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.5151, allocations: 0 / 0.6971 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01574/0.5308, allocations: 4.972 MB / 0.7019 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003923/0.5312, allocations: 208.1 kB / 0.7021 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003372/0.5316, allocations: 16 kB / 0.7021 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.5328, allocations: 111.9 kB / 0.7022 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007058/0.5335, allocations: 216.6 kB / 0.7024 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.5336, allocations: 27.98 kB / 0.7025 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008304/0.5345, allocations: 0.5887 MB / 0.7031 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5345, allocations: 0 / 0.7031 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001459/0.5359, allocations: 439.6 kB / 0.7035 GB, free: 3.199 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (order2_Inputs_Outputs1.delta,order2_Inputs_Outputs1.w) * 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 (63): * Single equations (assignments): 62 * 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.01622/0.5522, allocations: 5.55 MB / 0.7089 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007264/0.5595, allocations: 2.476 MB / 0.7113 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.5595, allocations: 0.5625 kB / 0.7113 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005032/0.5646, allocations: 1.6 MB / 0.7129 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000986/0.5656, allocations: 81.83 kB / 0.7129 GB, free: 9.43 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03953/0.6051, allocations: 15.17 MB / 0.7278 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007978/0.606, allocations: 1.084 MB / 0.7288 GB, free: 8.941 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004366/0.6064, allocations: 90.67 kB / 0.7289 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006669/0.6071, allocations: 451.3 kB / 0.7293 GB, free: 8.406 MB / 0.5294 GB Notification: Performance of SimCode: time 1.062e-06/0.6071, allocations: 0 / 0.7293 GB, free: 8.406 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06694/0.6741, allocations: 33.27 MB / 0.7618 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.27/16.94, allocations: 16.42 kB / 0.7618 GB, free: 7.266 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe ; mkfifo OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe >> ../files/OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_OpenIPSL_Tests_Machines_PSAT_Order2test2_perturbation.fmu > OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe 2>&1)