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.00187/0.00187, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.002254/0.002254, allocations: 208.4 kB / 23.74 MB, free: 4.66 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.476/1.476, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.1844/0.1844, allocations: 38.53 MB / 352.5 MB, free: 12.53 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.002009/0.002009, allocations: 63.91 kB / 492.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2951, allocations: 62.47 MB / 0.542 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008309/0.3034, allocations: 6.535 MB / 0.5484 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004634/0.308, allocations: 2.732 MB / 0.551 GB, free: 9.141 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004556/0.3085, allocations: 41.72 kB / 0.5511 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00119/0.3097, allocations: 341.3 kB / 0.5514 GB, free: 8.855 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001364/0.311, allocations: 0.6142 MB / 0.552 GB, free: 8.383 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006875/0.3117, allocations: 291.2 kB / 0.5523 GB, free: 8.148 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001576/0.3133, allocations: 1.201 MB / 0.5535 GB, free: 7.461 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001043/0.3143, allocations: 0.7807 MB / 0.5542 GB, free: 6.906 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007591/0.3151, allocations: 0.4896 MB / 0.5547 GB, free: 6.625 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008479/0.316, allocations: 0.5655 MB / 0.5553 GB, free: 6.273 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000122/0.3161, allocations: 87.28 kB / 0.5553 GB, free: 6.273 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000648/0.3167, allocations: 375.6 kB / 0.5557 GB, free: 6.113 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000365/0.3171, allocations: 345.4 kB / 0.556 GB, free: 5.875 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004845/0.3176, allocations: 462 kB / 0.5565 GB, free: 5.562 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001625/0.3192, allocations: 1.38 MB / 0.5578 GB, free: 4.262 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3192, allocations: 0 / 0.5578 GB, free: 4.262 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3192, allocations: 0 / 0.5578 GB, free: 4.262 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.3192, allocations: 0 / 0.5578 GB, free: 4.262 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.002306/0.3215, allocations: 1.094 MB / 0.5589 GB, free: 3.137 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.3216, allocations: 15.98 kB / 0.5589 GB, free: 3.121 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001673/0.3217, allocations: 114.7 kB / 0.559 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006845/0.3224, allocations: 144.3 kB / 0.5591 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.3237, allocations: 0.6419 MB / 0.5598 GB, free: 2.188 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/0.3239, allocations: 113.4 kB / 0.5599 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.324, allocations: 60 kB / 0.5599 GB, free: 2.008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.3256, allocations: 0.957 MB / 0.5609 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.993e-05/0.3256, allocations: 3.953 kB / 0.5609 GB, free: 1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.036e-05/0.3257, allocations: 28 kB / 0.5609 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001022/0.3258, allocations: 57.28 kB / 0.561 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.3271, allocations: 0.7858 MB / 0.5617 GB, free: 132 kB / 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.005314/0.3325, allocations: 3.754 MB / 0.5654 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008032/0.3333, allocations: 420.1 kB / 0.5658 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004442/0.3337, allocations: 233.8 kB / 0.566 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.582e-05/0.3337, allocations: 7.859 kB / 0.566 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.862e-05/0.3338, allocations: 42.5 kB / 0.5661 GB, free: 11.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 1.913e-06/0.3338, allocations: 0 / 0.5661 GB, free: 11.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=55): time 0.01129/0.3451, allocations: 3.396 MB / 0.5694 GB, free: 7.965 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.151e-05/0.3452, allocations: 115.2 kB / 0.5695 GB, free: 7.828 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007677/0.3459, allocations: 0.5222 MB / 0.57 GB, free: 7.301 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.6e-05/0.346, allocations: 37.7 kB / 0.57 GB, free: 7.258 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003526/0.3464, allocations: 408.1 kB / 0.5704 GB, free: 6.852 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002099/0.3466, allocations: 206.2 kB / 0.5706 GB, free: 6.648 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002191/0.3468, allocations: 130.6 kB / 0.5707 GB, free: 6.516 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.347, allocations: 370.8 kB / 0.5711 GB, free: 6.145 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005072/0.3475, allocations: 281.8 kB / 0.5714 GB, free: 5.867 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006992/0.3482, allocations: 0.5072 MB / 0.5719 GB, free: 5.254 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.3495, allocations: 0.8481 MB / 0.5727 GB, free: 4.305 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3495, allocations: 4 kB / 0.5727 GB, free: 4.301 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003501/0.353, allocations: 1.306 MB / 0.574 GB, free: 2.977 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/0.3531, allocations: 8 kB / 0.574 GB, free: 2.969 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.3531, allocations: 8 kB / 0.574 GB, free: 2.961 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001739/0.3548, allocations: 463.2 kB / 0.5744 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004805/0.3553, allocations: 119.8 kB / 0.5745 GB, free: 2.379 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01206/0.3673, allocations: 8.814 MB / 0.5831 GB, free: 9.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006414/0.368, allocations: 31.92 kB / 0.5832 GB, free: 9.059 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.773e-05/0.368, allocations: 32.23 kB / 0.5832 GB, free: 9.027 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.0005159/0.3686, allocations: 305.5 kB / 0.5835 GB, free: 8.719 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.3687, allocations: 67.69 kB / 0.5836 GB, free: 8.652 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003281/0.372, allocations: 1.154 MB / 0.5847 GB, free: 7.48 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.372, allocations: 8 kB / 0.5847 GB, free: 7.473 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.372, allocations: 4 kB / 0.5847 GB, free: 7.469 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.372, allocations: 3.984 kB / 0.5847 GB, free: 7.465 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00484/0.3769, allocations: 2.08 MB / 0.5867 GB, free: 5.316 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.3769, allocations: 4 kB / 0.5867 GB, free: 5.312 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003372/0.3772, allocations: 64.05 kB / 0.5868 GB, free: 5.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001537/0.3787, allocations: 443 kB / 0.5872 GB, free: 4.805 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.627e-05/0.3788, allocations: 19.92 kB / 0.5872 GB, free: 4.785 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01121/0.39, allocations: 8.541 MB / 0.5956 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.39, allocations: 8.031 kB / 0.5956 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004006/0.394, allocations: 1.7 MB / 0.5973 GB, free: 10.04 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003544/0.3944, allocations: 127.5 kB / 0.5974 GB, free: 9.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.943e-05/0.3945, allocations: 23.86 kB / 0.5974 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000439/0.3949, allocations: 16 kB / 0.5974 GB, free: 9.871 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001851/0.3951, allocations: 64.31 kB / 0.5975 GB, free: 9.809 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.766e-05/0.3951, allocations: 20.06 kB / 0.5975 GB, free: 9.789 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004837/0.3956, allocations: 374.8 kB / 0.5979 GB, free: 9.426 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3956, allocations: 0 / 0.5979 GB, free: 9.426 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009642/0.3966, allocations: 251.9 kB / 0.5981 GB, free: 9.18 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.004386/0.401, allocations: 2.279 MB / 0.6003 GB, free: 6.848 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002585/0.4035, allocations: 1.313 MB / 0.6016 GB, free: 5.477 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.4035, allocations: 9.375 kB / 0.6016 GB, free: 5.469 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002397/0.4059, allocations: 0.9701 MB / 0.6026 GB, free: 4.449 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/0.4075, allocations: 173.8 kB / 0.6027 GB, free: 4.285 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/0.4218, allocations: 7.406 MB / 0.61 GB, free: 12.54 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008752/0.4227, allocations: 1.052 MB / 0.611 GB, free: 11.46 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004106/0.4231, allocations: 113.7 kB / 0.6111 GB, free: 11.35 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003752/0.4234, allocations: 263.3 kB / 0.6113 GB, free: 11.09 MB / 462.1 MB Notification: Performance of SimCode: time 1.163e-06/0.4234, allocations: 3.938 kB / 0.6113 GB, free: 11.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06755/0.491, allocations: 22.26 MB / 0.6331 GB, free: 5.035 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.24/14.73, allocations: 7.984 kB / 0.6331 GB, free: 5.027 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.573551079025492] Failed to read output from testmodel.py, exit status != 0: 14.86757557792589 14.898381995 14.573214457 Calling exit ...