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.00118/0.00118, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.578/1.578, allocations: 222.9 MB / 239.3 MB, free: 4.617 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.002191/0.002191, allocations: 192.5 kB / 289.6 MB, free: 2.336 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5503/0.5503, allocations: 78.53 MB / 418.2 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002213, allocations: 79.86 kB / 497.6 MB, free: 6.355 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.201, allocations: 68.18 MB / 0.5525 GB, free: 2.137 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation): time 0.4055/0.6066, allocations: 6.48 MB / 0.5588 GB, free: 36 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004201/0.6109, allocations: 1.868 MB / 0.5606 GB, free: 35.46 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005727/0.6115, allocations: 12.06 kB / 0.5606 GB, free: 35.46 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000619/0.6121, allocations: 230.2 kB / 0.5609 GB, free: 35.46 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001736/0.6139, allocations: 0.7137 MB / 0.5616 GB, free: 35.32 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.001281/0.6152, allocations: 0.6111 MB / 0.5621 GB, free: 35.23 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001285/0.6165, allocations: 1.423 MB / 0.5635 GB, free: 35.03 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004509/0.6169, allocations: 320.6 kB / 0.5638 GB, free: 34.99 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005606/0.6175, allocations: 0.5862 MB / 0.5644 GB, free: 34.84 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006705/0.6182, allocations: 0.7365 MB / 0.5651 GB, free: 34.63 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001788/0.6184, allocations: 100.9 kB / 0.5652 GB, free: 34.63 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004929/0.6189, allocations: 240.1 kB / 0.5655 GB, free: 34.62 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002559/0.6192, allocations: 273 kB / 0.5657 GB, free: 34.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005265/0.6197, allocations: 0.628 MB / 0.5663 GB, free: 34.31 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001394/0.6211, allocations: 1.508 MB / 0.5678 GB, free: 33.93 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.6211, allocations: 0 / 0.5678 GB, free: 33.93 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.6211, allocations: 1.938 kB / 0.5678 GB, free: 33.93 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.629e-05/0.6211, allocations: 0 / 0.5678 GB, free: 33.93 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.007883/0.629, allocations: 2.561 MB / 0.5703 GB, free: 33.03 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.339e-05/0.6291, allocations: 9.594 kB / 0.5703 GB, free: 33.03 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001642/0.6293, allocations: 134.8 kB / 0.5704 GB, free: 32.98 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004901/0.6342, allocations: 0.7804 MB / 0.5712 GB, free: 32.9 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.6354, allocations: 0.7605 MB / 0.572 GB, free: 32.49 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003101/0.6357, allocations: 261.2 kB / 0.5722 GB, free: 32.3 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001631/0.6359, allocations: 79.19 kB / 0.5723 GB, free: 32.29 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002287/0.6382, allocations: 1.084 MB / 0.5733 GB, free: 32.23 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.6383, allocations: 2.344 kB / 0.5733 GB, free: 32.23 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.609e-05/0.6384, allocations: 32.88 kB / 0.5734 GB, free: 32.23 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.067e-05/0.6384, allocations: 25.78 kB / 0.5734 GB, free: 32.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00229/0.6407, allocations: 1.121 MB / 0.5745 GB, free: 32.21 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.005249/0.6459, allocations: 3.465 MB / 0.5779 GB, free: 31.05 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002109/0.6481, allocations: 1.434 MB / 0.5793 GB, free: 30.12 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001504/0.6496, allocations: 0.7837 MB / 0.58 GB, free: 29.83 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001006/0.6497, allocations: 16.02 kB / 0.5801 GB, free: 29.82 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.6497, allocations: 50.03 kB / 0.5801 GB, free: 29.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=98): time 3.607e-06/0.6497, allocations: 0 / 0.5801 GB, free: 29.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=98): time 0.02675/0.6765, allocations: 6.602 MB / 0.5865 GB, free: 28.52 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.925e-05/0.6766, allocations: 67.16 kB / 0.5866 GB, free: 28.45 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/0.6783, allocations: 0.8908 MB / 0.5875 GB, free: 28.08 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000176/0.6784, allocations: 46.08 kB / 0.5875 GB, free: 28.03 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003936/0.6788, allocations: 497.2 kB / 0.588 GB, free: 27.64 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003916/0.6792, allocations: 352.1 kB / 0.5883 GB, free: 27.36 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004128/0.6797, allocations: 201.8 kB / 0.5885 GB, free: 27.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.6798, allocations: 354.5 kB / 0.5889 GB, free: 26.94 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001906/0.6817, allocations: 0.7343 MB / 0.5896 GB, free: 26.68 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002155/0.6839, allocations: 0.8614 MB / 0.5904 GB, free: 26.31 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0211/0.705, allocations: 4.861 MB / 0.5952 GB, free: 24.97 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.26e-05/0.705, allocations: 1.375 kB / 0.5952 GB, free: 24.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.01614/0.7212, allocations: 4.282 MB / 0.5994 GB, free: 23.93 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.436e-05/0.7213, allocations: 5.562 kB / 0.5994 GB, free: 23.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.7213, allocations: 2.531 kB / 0.5994 GB, free: 23.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006984/0.7283, allocations: 1.732 MB / 0.6011 GB, free: 23.63 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.7296, allocations: 231.9 kB / 0.6013 GB, free: 23.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02379/0.7534, allocations: 9.068 MB / 0.6101 GB, free: 18.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002604/0.756, allocations: 182.5 kB / 0.6103 GB, free: 18.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/0.7562, allocations: 41.72 kB / 0.6103 GB, free: 18.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.000841/0.7571, allocations: 235.8 kB / 0.6106 GB, free: 18.56 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005413/0.7576, allocations: 122.4 kB / 0.6107 GB, free: 18.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01319/0.7708, allocations: 4.012 MB / 0.6146 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.7709, allocations: 8.875 kB / 0.6146 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.7709, allocations: 0 / 0.6146 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.7709, allocations: 11.92 kB / 0.6146 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01397/0.7849, allocations: 5.606 MB / 0.6201 GB, free: 9.398 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.126e-06/0.7849, allocations: 0 / 0.6201 GB, free: 9.398 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006565/0.7856, allocations: 139.7 kB / 0.6202 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005357/0.7909, allocations: 1.741 MB / 0.6219 GB, free: 7.52 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.065e-05/0.791, allocations: 23.98 kB / 0.622 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.017/0.808, allocations: 8.07 MB / 0.6298 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.8081, allocations: 0 / 0.6298 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01589/0.824, allocations: 4.956 MB / 0.6347 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005626/0.8246, allocations: 199.4 kB / 0.6349 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001667/0.8247, allocations: 20 kB / 0.6349 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.8258, allocations: 114.3 kB / 0.635 GB, free: 9.965 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007675/0.8266, allocations: 216.7 kB / 0.6352 GB, free: 9.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.055e-05/0.8267, allocations: 24 kB / 0.6352 GB, free: 9.727 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009665/0.8276, allocations: 0.5969 MB / 0.6358 GB, free: 9.121 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8276, allocations: 0 / 0.6358 GB, free: 9.121 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001855/0.8295, allocations: 443.4 kB / 0.6362 GB, free: 8.688 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.01642/0.8459, allocations: 5.537 MB / 0.6416 GB, free: 3.105 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008264/0.8542, allocations: 2.507 MB / 0.6441 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.8542, allocations: 4 kB / 0.6441 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005107/0.8594, allocations: 1.596 MB / 0.6456 GB, free: 14.98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009856/0.8604, allocations: 88.36 kB / 0.6457 GB, free: 14.89 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03981/0.9002, allocations: 16 MB / 0.6614 GB, free: 14.52 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008276/0.901, allocations: 1.099 MB / 0.6624 GB, free: 13.39 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004588/0.9015, allocations: 90.56 kB / 0.6625 GB, free: 13.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006386/0.9022, allocations: 447.3 kB / 0.6629 GB, free: 12.87 MB / 478.1 MB Notification: Performance of SimCode: time 1.322e-06/0.9022, allocations: 0 / 0.6629 GB, free: 12.87 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07044/0.9726, allocations: 33.17 MB / 0.6953 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/14.32, allocations: 4.594 kB / 0.6953 GB, free: 12.03 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)