Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 215.8 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.463/1.463, allocations: 230.6 MB / 258.3 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1852/0.1852, allocations: 38.55 MB / 353.2 MB, free: 12.33 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002062/0.002062, allocations: 68.52 kB / 493.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3231, allocations: 62.47 MB / 0.5427 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008198/0.3313, allocations: 6.078 MB / 0.5486 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004538/0.3358, allocations: 2.501 MB / 0.5511 GB, free: 9.688 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004967/0.3363, allocations: 37.88 kB / 0.5511 GB, free: 9.668 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.3374, allocations: 325 kB / 0.5514 GB, free: 9.422 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00143/0.3388, allocations: 0.6082 MB / 0.552 GB, free: 8.957 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007091/0.3395, allocations: 291.1 kB / 0.5523 GB, free: 8.723 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001479/0.341, allocations: 1.196 MB / 0.5535 GB, free: 8.039 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001013/0.342, allocations: 0.7808 MB / 0.5542 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007874/0.3428, allocations: 0.4891 MB / 0.5547 GB, free: 7.203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008455/0.3437, allocations: 0.57 MB / 0.5553 GB, free: 6.848 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001381/0.3438, allocations: 87.16 kB / 0.5553 GB, free: 6.848 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006575/0.3445, allocations: 356.4 kB / 0.5557 GB, free: 6.699 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003736/0.3448, allocations: 347.1 kB / 0.556 GB, free: 6.461 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004576/0.3453, allocations: 369.9 kB / 0.5564 GB, free: 6.238 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0017/0.347, allocations: 1.385 MB / 0.5577 GB, free: 4.863 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.347, allocations: 0 / 0.5577 GB, free: 4.863 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.347, allocations: 0 / 0.5577 GB, free: 4.863 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.347, allocations: 0 / 0.5577 GB, free: 4.863 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002207/0.3492, allocations: 1.088 MB / 0.5588 GB, free: 3.742 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3493, allocations: 15.92 kB / 0.5588 GB, free: 3.727 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.114e-05/0.3493, allocations: 22.19 kB / 0.5588 GB, free: 3.703 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001506/0.3494, allocations: 118.7 kB / 0.5589 GB, free: 3.578 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007152/0.3502, allocations: 140.3 kB / 0.5591 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001241/0.3514, allocations: 0.6301 MB / 0.5597 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.3515, allocations: 121.4 kB / 0.5598 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.3517, allocations: 64 kB / 0.5599 GB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/0.3532, allocations: 0.9608 MB / 0.5608 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/0.3533, allocations: 3.953 kB / 0.5608 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.715e-05/0.3533, allocations: 28 kB / 0.5608 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001056/0.3534, allocations: 53.28 kB / 0.5609 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.3549, allocations: 0.7858 MB / 0.5617 GB, free: 0.7148 MB / 398.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.005121/0.36, allocations: 3.405 MB / 0.565 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008337/0.3608, allocations: 424 kB / 0.5654 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004476/0.3613, allocations: 227.1 kB / 0.5656 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.3613, allocations: 11.86 kB / 0.5656 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.3613, allocations: 38.56 kB / 0.5656 GB, free: 12.4 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 2.615e-06/0.3613, allocations: 0 / 0.5656 GB, free: 12.4 MB / 414.1 MB Notification: Performance of matching and sorting (n=55): time 0.01154/0.3729, allocations: 3.403 MB / 0.569 GB, free: 8.934 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.64e-05/0.3729, allocations: 111.3 kB / 0.5691 GB, free: 8.801 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007935/0.3737, allocations: 0.5261 MB / 0.5696 GB, free: 8.266 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.564e-05/0.3738, allocations: 33.7 kB / 0.5696 GB, free: 8.227 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003739/0.3742, allocations: 404.1 kB / 0.57 GB, free: 7.828 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002065/0.3744, allocations: 202.3 kB / 0.5702 GB, free: 7.629 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002388/0.3746, allocations: 134.6 kB / 0.5703 GB, free: 7.492 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002127/0.3748, allocations: 374.7 kB / 0.5707 GB, free: 7.117 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000513/0.3753, allocations: 281.8 kB / 0.571 GB, free: 6.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007027/0.376, allocations: 0.5072 MB / 0.5714 GB, free: 6.227 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.3773, allocations: 0.8481 MB / 0.5723 GB, free: 5.277 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.702e-06/0.3773, allocations: 4 kB / 0.5723 GB, free: 5.273 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003672/0.381, allocations: 1.307 MB / 0.5736 GB, free: 3.945 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.381, allocations: 8 kB / 0.5736 GB, free: 3.938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.381, allocations: 8 kB / 0.5736 GB, free: 3.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001777/0.3828, allocations: 467.2 kB / 0.574 GB, free: 3.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004728/0.3833, allocations: 123.9 kB / 0.5741 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01169/0.395, allocations: 8.744 MB / 0.5827 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005992/0.3956, allocations: 27.98 kB / 0.5827 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.28e-05/0.3956, allocations: 35.94 kB / 0.5827 GB, free: 10.07 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (3,8,88.9%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0004772/0.3961, allocations: 309.6 kB / 0.583 GB, free: 9.754 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.3962, allocations: 63.58 kB / 0.5831 GB, free: 9.691 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003214/0.3995, allocations: 1.15 MB / 0.5842 GB, free: 8.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.3995, allocations: 8 kB / 0.5842 GB, free: 8.512 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.3995, allocations: 4.234 kB / 0.5842 GB, free: 8.508 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.3995, allocations: 7.922 kB / 0.5842 GB, free: 8.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004513/0.404, allocations: 1.986 MB / 0.5862 GB, free: 6.445 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.404, allocations: 4 kB / 0.5862 GB, free: 6.441 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003519/0.4044, allocations: 59.89 kB / 0.5862 GB, free: 6.383 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001632/0.406, allocations: 447.1 kB / 0.5867 GB, free: 5.934 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.09e-05/0.406, allocations: 19.94 kB / 0.5867 GB, free: 5.914 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01097/0.417, allocations: 8.478 MB / 0.595 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.417, allocations: 8 kB / 0.595 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003913/0.4209, allocations: 1.7 MB / 0.5966 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003054/0.4212, allocations: 123.5 kB / 0.5967 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.92e-05/0.4213, allocations: 15.94 kB / 0.5968 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004205/0.4217, allocations: 19.98 kB / 0.5968 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.4219, allocations: 60.38 kB / 0.5968 GB, free: 11.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-05/0.422, allocations: 16 kB / 0.5969 GB, free: 11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004981/0.4225, allocations: 374.8 kB / 0.5972 GB, free: 10.63 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4225, allocations: 0 / 0.5972 GB, free: 10.63 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00099/0.4235, allocations: 256 kB / 0.5975 GB, free: 10.38 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,8,88.9%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004408/0.4279, allocations: 2.282 MB / 0.5997 GB, free: 8.051 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002612/0.4305, allocations: 1.321 MB / 0.601 GB, free: 6.672 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/0.4305, allocations: 4 kB / 0.601 GB, free: 6.668 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001825/0.4323, allocations: 0.9588 MB / 0.6019 GB, free: 5.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.4334, allocations: 173.6 kB / 0.6021 GB, free: 5.496 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/0.4477, allocations: 7.407 MB / 0.6093 GB, free: 13.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005882/0.4483, allocations: 456.9 kB / 0.6097 GB, free: 13.28 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004131/0.4487, allocations: 109.7 kB / 0.6099 GB, free: 13.17 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003908/0.4491, allocations: 271.3 kB / 0.6101 GB, free: 12.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4491, allocations: 0 / 0.6101 GB, free: 12.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06247/0.5116, allocations: 22.6 MB / 0.6322 GB, free: 6.609 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.86/15.37, allocations: 8 kB / 0.6322 GB, free: 6.602 MB / 478.1 MB " [Timeout remaining time 644] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.349829913000576] Failed to read output from testmodel.py, exit status != 0: 15.57394422008656 15.605316759 15.252775692 Calling exit ...