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.001342/0.001342, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001675/0.001675, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.466/1.466, allocations: 230.6 MB / 258.3 MB, free: 7.988 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.1892/0.1892, allocations: 38.52 MB / 353.2 MB, free: 12.52 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_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.002116/0.002116, allocations: 67.91 kB / 493.3 MB, free: 4.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.352, allocations: 62.47 MB / 0.5428 GB, free: 332 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009071/0.3611, allocations: 6.546 MB / 0.5492 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005391/0.3665, allocations: 2.732 MB / 0.5518 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009007/0.3674, allocations: 38.88 kB / 0.5519 GB, free: 9.008 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.3687, allocations: 344.7 kB / 0.5522 GB, free: 8.742 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00185/0.3706, allocations: 0.6069 MB / 0.5528 GB, free: 8.277 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007815/0.3714, allocations: 282.2 kB / 0.553 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001659/0.373, allocations: 1.206 MB / 0.5542 GB, free: 7.359 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/0.3742, allocations: 0.7803 MB / 0.555 GB, free: 6.805 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009052/0.3751, allocations: 0.498 MB / 0.5555 GB, free: 6.516 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008846/0.376, allocations: 0.5615 MB / 0.556 GB, free: 6.168 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001246/0.3761, allocations: 86.5 kB / 0.5561 GB, free: 6.168 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007254/0.3768, allocations: 379.9 kB / 0.5565 GB, free: 6.004 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003598/0.3772, allocations: 345.6 kB / 0.5568 GB, free: 5.766 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004826/0.3777, allocations: 458.7 kB / 0.5572 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001644/0.3793, allocations: 1.38 MB / 0.5586 GB, free: 4.148 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3793, allocations: 0 / 0.5586 GB, free: 4.148 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3793, allocations: 0 / 0.5586 GB, free: 4.148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.3793, allocations: 0 / 0.5586 GB, free: 4.148 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.002279/0.3816, allocations: 1.092 MB / 0.5596 GB, free: 3.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.3817, allocations: 15.98 kB / 0.5597 GB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.543e-05/0.3817, allocations: 22.12 kB / 0.5597 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000145/0.3819, allocations: 114.7 kB / 0.5598 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000742/0.3826, allocations: 144.3 kB / 0.5599 GB, free: 2.723 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.3839, allocations: 0.634 MB / 0.5606 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.384, allocations: 101.4 kB / 0.5606 GB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.3841, allocations: 75.97 kB / 0.5607 GB, free: 1.875 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.3857, allocations: 0.9608 MB / 0.5617 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.005e-05/0.3858, allocations: 7.891 kB / 0.5617 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.59e-05/0.3858, allocations: 28 kB / 0.5617 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001036/0.3859, allocations: 53.28 kB / 0.5617 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001417/0.3874, allocations: 0.7897 MB / 0.5625 GB, free: 15.99 MB / 414.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.005273/0.3926, allocations: 3.75 MB / 0.5662 GB, free: 12.03 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008295/0.3935, allocations: 420.1 kB / 0.5666 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004511/0.3939, allocations: 230.1 kB / 0.5668 GB, free: 11.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.911e-05/0.394, allocations: 11.84 kB / 0.5668 GB, free: 11.35 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.394, allocations: 34.56 kB / 0.5668 GB, free: 11.3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 1.893e-06/0.394, allocations: 4 kB / 0.5668 GB, free: 11.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=55): time 0.01115/0.4051, allocations: 3.4 MB / 0.5702 GB, free: 7.832 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.318e-05/0.4052, allocations: 111.2 kB / 0.5703 GB, free: 7.699 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007372/0.406, allocations: 0.5222 MB / 0.5708 GB, free: 7.168 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.509e-05/0.406, allocations: 37.7 kB / 0.5708 GB, free: 7.125 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00032/0.4063, allocations: 404.1 kB / 0.5712 GB, free: 6.727 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/0.4065, allocations: 202.2 kB / 0.5714 GB, free: 6.527 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002171/0.4067, allocations: 130.6 kB / 0.5715 GB, free: 6.395 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.4069, allocations: 374.8 kB / 0.5719 GB, free: 6.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005163/0.4075, allocations: 285.8 kB / 0.5722 GB, free: 5.738 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007238/0.4082, allocations: 0.5033 MB / 0.5726 GB, free: 5.129 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.4095, allocations: 0.8559 MB / 0.5735 GB, free: 4.172 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.4095, allocations: 0 / 0.5735 GB, free: 4.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00366/0.4132, allocations: 1.307 MB / 0.5748 GB, free: 2.844 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.4132, allocations: 8 kB / 0.5748 GB, free: 2.836 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/0.4132, allocations: 8 kB / 0.5748 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001734/0.415, allocations: 467.2 kB / 0.5752 GB, free: 2.359 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005033/0.4155, allocations: 119.8 kB / 0.5753 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01217/0.4276, allocations: 8.808 MB / 0.5839 GB, free: 8.961 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000632/0.4283, allocations: 27.98 kB / 0.584 GB, free: 8.934 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.76e-05/0.4283, allocations: 28 kB / 0.584 GB, free: 8.906 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.0004664/0.4288, allocations: 313.5 kB / 0.5843 GB, free: 8.59 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001394/0.4289, allocations: 67.92 kB / 0.5843 GB, free: 8.523 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003191/0.4321, allocations: 1.154 MB / 0.5855 GB, free: 7.348 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.4321, allocations: 11.94 kB / 0.5855 GB, free: 7.336 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.4321, allocations: 4 kB / 0.5855 GB, free: 7.332 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.4321, allocations: 7.922 kB / 0.5855 GB, free: 7.324 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004758/0.4369, allocations: 2.076 MB / 0.5875 GB, free: 5.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.4369, allocations: 96 / 0.5875 GB, free: 5.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003597/0.4373, allocations: 67.89 kB / 0.5876 GB, free: 5.113 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001534/0.4388, allocations: 446.8 kB / 0.588 GB, free: 4.668 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.006e-05/0.4389, allocations: 19.92 kB / 0.588 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01078/0.4496, allocations: 8.549 MB / 0.5964 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.4496, allocations: 7.938 kB / 0.5964 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003901/0.4535, allocations: 1.7 MB / 0.5981 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003422/0.4539, allocations: 123.5 kB / 0.5982 GB, free: 9.766 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.331e-05/0.454, allocations: 15.94 kB / 0.5982 GB, free: 9.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004126/0.4544, allocations: 19.98 kB / 0.5982 GB, free: 9.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000208/0.4546, allocations: 60.38 kB / 0.5983 GB, free: 9.672 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.201e-05/0.4546, allocations: 20.06 kB / 0.5983 GB, free: 9.652 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005218/0.4552, allocations: 370.8 kB / 0.5986 GB, free: 9.293 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4552, allocations: 0 / 0.5986 GB, free: 9.293 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001026/0.4562, allocations: 251.9 kB / 0.5989 GB, free: 9.047 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.004344/0.4605, allocations: 2.282 MB / 0.6011 GB, free: 6.715 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002642/0.4632, allocations: 1.313 MB / 0.6024 GB, free: 5.344 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4632, allocations: 1.438 kB / 0.6024 GB, free: 5.344 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001816/0.465, allocations: 0.974 MB / 0.6033 GB, free: 4.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.466, allocations: 184.9 kB / 0.6035 GB, free: 4.145 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01383/0.4799, allocations: 7.402 MB / 0.6107 GB, free: 12.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008261/0.4807, allocations: 1.052 MB / 0.6118 GB, free: 11.32 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004059/0.4811, allocations: 117.7 kB / 0.6119 GB, free: 11.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003781/0.4815, allocations: 267.3 kB / 0.6121 GB, free: 10.95 MB / 462.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4815, allocations: 0 / 0.6121 GB, free: 10.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06391/0.5454, allocations: 22.28 MB / 0.6339 GB, free: 4.875 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.38/14.93, allocations: 14.55 kB / 0.6339 GB, free: 4.867 MB / 478.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.85520590102533] Failed to read output from testmodel.py, exit status != 0: 15.117498588981107 15.141389889 14.756338945 Calling exit ...