Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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.001393/0.001393, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002005/0.002005, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.469/1.469, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1841/0.1841, allocations: 38.56 MB / 352.5 MB, free: 12.29 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",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.002091/0.002091, allocations: 75.91 kB / 492.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3106/0.3127, allocations: 62.46 MB / 0.5419 GB, free: 260 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008232/0.3209, allocations: 6.093 MB / 0.5479 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004197/0.3251, allocations: 2.513 MB / 0.5503 GB, free: 9.684 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003705/0.3255, allocations: 39.19 kB / 0.5504 GB, free: 9.664 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001043/0.3265, allocations: 321.7 kB / 0.5507 GB, free: 9.422 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001369/0.3279, allocations: 0.6068 MB / 0.5513 GB, free: 8.957 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006504/0.3285, allocations: 287.6 kB / 0.5515 GB, free: 8.727 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001441/0.33, allocations: 1.202 MB / 0.5527 GB, free: 8.039 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009638/0.3309, allocations: 0.7678 MB / 0.5535 GB, free: 7.496 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007328/0.3317, allocations: 0.5016 MB / 0.554 GB, free: 7.203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008014/0.3325, allocations: 0.5273 MB / 0.5545 GB, free: 6.891 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001265/0.3326, allocations: 86.47 kB / 0.5546 GB, free: 6.891 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006282/0.3332, allocations: 348.8 kB / 0.5549 GB, free: 6.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003686/0.3336, allocations: 345.9 kB / 0.5552 GB, free: 6.512 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004299/0.334, allocations: 372.1 kB / 0.5556 GB, free: 6.246 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001555/0.3356, allocations: 1.382 MB / 0.5569 GB, free: 4.859 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3356, allocations: 0 / 0.5569 GB, free: 4.859 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3356, allocations: 0 / 0.5569 GB, free: 4.859 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.968e-05/0.3356, allocations: 4 kB / 0.5569 GB, free: 4.855 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.002203/0.3378, allocations: 1.088 MB / 0.558 GB, free: 3.734 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.3379, allocations: 11.98 kB / 0.558 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000161/0.338, allocations: 122.7 kB / 0.5581 GB, free: 3.594 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006812/0.3387, allocations: 144.2 kB / 0.5583 GB, free: 3.453 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001319/0.34, allocations: 0.6341 MB / 0.5589 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001265/0.3401, allocations: 101.4 kB / 0.559 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/0.3403, allocations: 71.98 kB / 0.559 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.3419, allocations: 0.957 MB / 0.56 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.3419, allocations: 7.891 kB / 0.56 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.008e-05/0.342, allocations: 28 kB / 0.56 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001107/0.3421, allocations: 57.28 kB / 0.5601 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.3435, allocations: 0.7819 MB / 0.5608 GB, free: 0.7305 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.005216/0.3487, allocations: 3.409 MB / 0.5642 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008342/0.3495, allocations: 424.5 kB / 0.5646 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004396/0.3499, allocations: 227.1 kB / 0.5648 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.234e-05/0.35, allocations: 11.8 kB / 0.5648 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.35, allocations: 38.56 kB / 0.5648 GB, free: 12.42 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 2.485e-06/0.35, allocations: 3.938 kB / 0.5648 GB, free: 12.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=55): time 0.01079/0.3608, allocations: 3.4 MB / 0.5682 GB, free: 8.949 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.151e-05/0.3609, allocations: 111.3 kB / 0.5683 GB, free: 8.816 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007186/0.3616, allocations: 0.5377 MB / 0.5688 GB, free: 8.273 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.674e-05/0.3617, allocations: 33.7 kB / 0.5688 GB, free: 8.234 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003309/0.362, allocations: 408.1 kB / 0.5692 GB, free: 7.828 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000197/0.3622, allocations: 214.2 kB / 0.5694 GB, free: 7.617 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002088/0.3624, allocations: 126.6 kB / 0.5695 GB, free: 7.488 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.3626, allocations: 366.8 kB / 0.5699 GB, free: 7.121 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005407/0.3631, allocations: 281.8 kB / 0.5701 GB, free: 6.844 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006913/0.3638, allocations: 0.5072 MB / 0.5706 GB, free: 6.234 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.3651, allocations: 0.852 MB / 0.5715 GB, free: 5.281 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3651, allocations: 4 kB / 0.5715 GB, free: 5.277 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003497/0.3686, allocations: 1.31 MB / 0.5728 GB, free: 3.945 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.3686, allocations: 8 kB / 0.5728 GB, free: 3.938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.3686, allocations: 8 kB / 0.5728 GB, free: 3.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001689/0.3703, allocations: 467.2 kB / 0.5732 GB, free: 3.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005023/0.3708, allocations: 119.8 kB / 0.5733 GB, free: 3.344 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01167/0.3825, allocations: 8.716 MB / 0.5818 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007685/0.3833, allocations: 35.92 kB / 0.5819 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.301e-05/0.3833, allocations: 31.98 kB / 0.5819 GB, free: 10.09 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.0005927/0.3839, allocations: 317.6 kB / 0.5822 GB, free: 9.77 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.3841, allocations: 63.69 kB / 0.5823 GB, free: 9.707 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003222/0.3873, allocations: 1.162 MB / 0.5834 GB, free: 8.527 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.3873, allocations: 8 kB / 0.5834 GB, free: 8.52 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.3873, allocations: 0 / 0.5834 GB, free: 8.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.3873, allocations: 4 kB / 0.5834 GB, free: 8.516 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004577/0.3919, allocations: 1.979 MB / 0.5854 GB, free: 6.469 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.3919, allocations: 0 / 0.5854 GB, free: 6.469 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003338/0.3923, allocations: 71.89 kB / 0.5854 GB, free: 6.398 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001493/0.3938, allocations: 447.1 kB / 0.5858 GB, free: 5.949 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.56e-05/0.3938, allocations: 15.94 kB / 0.5859 GB, free: 5.934 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01073/0.4045, allocations: 8.486 MB / 0.5942 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.4045, allocations: 7.969 kB / 0.5942 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003843/0.4084, allocations: 1.696 MB / 0.5958 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003792/0.4088, allocations: 127.5 kB / 0.5959 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.148e-05/0.4088, allocations: 15.92 kB / 0.596 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004018/0.4092, allocations: 16 kB / 0.596 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.4094, allocations: 60.38 kB / 0.596 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.774e-05/0.4095, allocations: 16 kB / 0.596 GB, free: 11.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004939/0.41, allocations: 374.8 kB / 0.5964 GB, free: 10.65 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.41, allocations: 0 / 0.5964 GB, free: 10.65 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00101/0.411, allocations: 256 kB / 0.5966 GB, free: 10.4 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.004243/0.4152, allocations: 2.28 MB / 0.5989 GB, free: 8.066 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002616/0.4178, allocations: 1.322 MB / 0.6002 GB, free: 6.688 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.4178, allocations: 0 / 0.6002 GB, free: 6.688 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001776/0.4196, allocations: 0.9703 MB / 0.6011 GB, free: 5.668 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.4206, allocations: 181.7 kB / 0.6013 GB, free: 5.496 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01349/0.4341, allocations: 7.398 MB / 0.6085 GB, free: 13.76 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006087/0.4347, allocations: 464.9 kB / 0.6089 GB, free: 13.28 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004243/0.4351, allocations: 105.7 kB / 0.609 GB, free: 13.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003681/0.4355, allocations: 259.3 kB / 0.6093 GB, free: 12.92 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4355, allocations: 0 / 0.6093 GB, free: 12.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06835/0.5038, allocations: 22.67 MB / 0.6314 GB, free: 6.531 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.15, allocations: 11.5 kB / 0.6314 GB, free: 6.523 MB / 478.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.01065514003858] Failed to read output from testmodel.py, exit status != 0: 14.286968510132283 14.310382118 13.970510558 Calling exit ...