Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) 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 3.2.3+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 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Machines_PSAT_Order4test2_perturbation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Machines_PSAT_Order4test2_perturbation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08377/0.08377, allocations: 12.59 MB / 28.22 MB, free: 0.7344 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 111.4 kB / 31.83 MB, free: 3.879 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.283/1.283, allocations: 205.1 MB / 240.4 MB, free: 12.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 192.5 kB / 290.7 MB, free: 10.94 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4143/0.4143, allocations: 78.51 MB / 419.3 MB, free: 10.73 MB / 302.1 MB Notification: Modelica_Synchronous 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: 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: OpenIPSL 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: Performance of FrontEnd - loaded program: time 0.002537/0.002537, allocations: 135.8 kB / 0.5554 GB, free: 17.79 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1154, allocations: 68.12 MB / 0.6219 GB, free: 13.64 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation): time 0.006481/0.122, allocations: 6.532 MB / 0.6283 GB, free: 7.07 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003486/0.1255, allocations: 1.838 MB / 0.6301 GB, free: 5.227 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006327/0.1262, allocations: 12 kB / 0.6301 GB, free: 5.215 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005412/0.1267, allocations: 222 kB / 0.6303 GB, free: 4.996 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001705/0.1284, allocations: 0.7688 MB / 0.6311 GB, free: 4.223 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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.001266/0.1297, allocations: 0.6156 MB / 0.6317 GB, free: 3.617 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001439/0.1312, allocations: 1.429 MB / 0.6331 GB, free: 2.184 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004314/0.1316, allocations: 324.4 kB / 0.6334 GB, free: 1.855 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006784/0.1323, allocations: 0.599 MB / 0.634 GB, free: 1.254 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000716/0.133, allocations: 0.7388 MB / 0.6347 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.1332, allocations: 100 kB / 0.6348 GB, free: 424 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004117/0.1336, allocations: 235.9 kB / 0.635 GB, free: 188 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002178/0.1338, allocations: 278.8 kB / 0.6353 GB, free: 15.91 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004918/0.1343, allocations: 0.629 MB / 0.6359 GB, free: 15.28 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001467/0.1358, allocations: 1.517 MB / 0.6374 GB, free: 13.75 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1358, allocations: 0 / 0.6374 GB, free: 13.75 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1358, allocations: 0 / 0.6374 GB, free: 13.75 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.077e-05/0.1358, allocations: 4 kB / 0.6374 GB, free: 13.75 MB / 462.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.008113/0.144, allocations: 2.605 MB / 0.6399 GB, free: 11.09 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.144, allocations: 11.98 kB / 0.6399 GB, free: 11.08 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001633/0.1442, allocations: 130.8 kB / 0.64 GB, free: 10.94 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005085/0.1493, allocations: 0.7952 MB / 0.6408 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00141/0.1507, allocations: 0.7734 MB / 0.6416 GB, free: 9.316 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000284/0.151, allocations: 260.2 kB / 0.6418 GB, free: 9.027 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000165/0.1512, allocations: 76 kB / 0.6419 GB, free: 8.953 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002379/0.1536, allocations: 1.085 MB / 0.643 GB, free: 7.863 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.1536, allocations: 3.938 kB / 0.643 GB, free: 7.859 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.503e-05/0.1537, allocations: 36 kB / 0.643 GB, free: 7.824 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.1537, allocations: 20 kB / 0.643 GB, free: 7.805 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002552/0.1563, allocations: 1.12 MB / 0.6441 GB, free: 6.68 MB / 462.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.006087/0.1624, allocations: 3.457 MB / 0.6475 GB, free: 3.074 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002238/0.1647, allocations: 1.436 MB / 0.6489 GB, free: 1.52 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001679/0.1664, allocations: 0.7852 MB / 0.6497 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.839e-05/0.1665, allocations: 20.92 kB / 0.6497 GB, free: 0.7148 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.066e-05/0.1665, allocations: 43.56 kB / 0.6497 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of pre-optimization done (n=98): time 2.956e-06/0.1665, allocations: 0 / 0.6497 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of matching and sorting (n=98): time 0.02609/0.1926, allocations: 6.614 MB / 0.6562 GB, free: 10.02 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.1927, allocations: 64.41 kB / 0.6562 GB, free: 9.941 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001192/0.1939, allocations: 0.8845 MB / 0.6571 GB, free: 9.039 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002338/0.1942, allocations: 45.7 kB / 0.6571 GB, free: 8.988 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003849/0.1946, allocations: 0.4974 MB / 0.6576 GB, free: 8.484 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004216/0.195, allocations: 364.9 kB / 0.658 GB, free: 8.125 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003986/0.1954, allocations: 206.9 kB / 0.6582 GB, free: 7.914 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.1956, allocations: 353.9 kB / 0.6585 GB, free: 7.562 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001725/0.1973, allocations: 0.7326 MB / 0.6592 GB, free: 6.832 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001793/0.1991, allocations: 0.8579 MB / 0.6601 GB, free: 5.941 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01935/0.2185, allocations: 4.85 MB / 0.6648 GB, free: 1.059 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.2185, allocations: 0 / 0.6648 GB, free: 1.059 MB / 478.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.01444/0.233, allocations: 4.289 MB / 0.669 GB, free: 12.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.233, allocations: 6.812 kB / 0.669 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.233, allocations: 4 kB / 0.669 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006278/0.2393, allocations: 1.73 MB / 0.6707 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.2406, allocations: 227.7 kB / 0.6709 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02241/0.263, allocations: 9.054 MB / 0.6797 GB, free: 1.574 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/0.2647, allocations: 187.2 kB / 0.6799 GB, free: 1.391 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002371/0.265, allocations: 39.98 kB / 0.68 GB, free: 1.352 MB / 494.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.0006838/0.2657, allocations: 237.4 kB / 0.6802 GB, free: 1.113 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004065/0.2661, allocations: 135.1 kB / 0.6803 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2616/0.5277, allocations: 4.009 MB / 0.6842 GB, free: 54.18 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-05/0.5277, allocations: 13.2 kB / 0.6842 GB, free: 54.18 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.5277, allocations: 4.594 kB / 0.6843 GB, free: 54.18 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.266e-05/0.5277, allocations: 5.344 kB / 0.6843 GB, free: 54.18 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01557/0.5433, allocations: 5.605 MB / 0.6897 GB, free: 53.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/0.5434, allocations: 0.7969 kB / 0.6897 GB, free: 53.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007783/0.5442, allocations: 129.1 kB / 0.6899 GB, free: 53.19 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00636/0.5505, allocations: 1.742 MB / 0.6916 GB, free: 52.93 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001634/0.5507, allocations: 20.3 kB / 0.6916 GB, free: 52.92 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01733/0.5681, allocations: 8.065 MB / 0.6995 GB, free: 49.11 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5681, allocations: 4 kB / 0.6995 GB, free: 49.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01462/0.5827, allocations: 4.965 MB / 0.7043 GB, free: 47.23 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003385/0.5831, allocations: 210.9 kB / 0.7045 GB, free: 47.05 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001985/0.5833, allocations: 16.53 kB / 0.7045 GB, free: 47.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.5844, allocations: 112.1 kB / 0.7046 GB, free: 46.99 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006012/0.585, allocations: 220.5 kB / 0.7048 GB, free: 46.86 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.992e-05/0.585, allocations: 28.48 kB / 0.7049 GB, free: 46.85 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0006623/0.5857, allocations: 0.5943 MB / 0.7054 GB, free: 46.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5857, allocations: 0 / 0.7054 GB, free: 46.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001164/0.5869, allocations: 438.3 kB / 0.7059 GB, free: 46.45 MB / 494.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.01406/0.601, allocations: 5.546 MB / 0.7113 GB, free: 43.37 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006198/0.6072, allocations: 2.486 MB / 0.7137 GB, free: 42.12 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.6072, allocations: 0 / 0.7137 GB, free: 42.12 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00446/0.6117, allocations: 1.612 MB / 0.7153 GB, free: 40.58 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007715/0.6125, allocations: 84.42 kB / 0.7154 GB, free: 40.49 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03398/0.6465, allocations: 15.41 MB / 0.7304 GB, free: 24.93 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.6469, allocations: 1.095 MB / 0.7315 GB, free: 23.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004239/0.6474, allocations: 94.38 kB / 0.7316 GB, free: 23.71 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004698/0.6478, allocations: 447.3 kB / 0.732 GB, free: 23.27 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6478, allocations: 0 / 0.732 GB, free: 23.27 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05832/0.7062, allocations: 33.59 MB / 0.7648 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.61/17.32, allocations: 0.5938 kB / 0.7648 GB, free: 5.773 MB / 0.4981 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.sim & python3 -m fmpy simulate --output-file OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order4test2_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_2_0_0_OpenIPSL_Tests_Machines_PSAT_Order4test2_perturbation.fmu > OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe 2>&1)