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.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/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 89.75 kB / 16.3 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 182.8 kB / 17.19 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1733/0.1733, allocations: 38.04 MB / 309.7 MB, free: 6.141 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004997/0.0004997, allocations: 16 kB / 376.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2432, allocations: 56.32 MB / 432.9 MB, free: 18.83 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.004996/0.2483, allocations: 6.108 MB / 439 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002965/0.2513, allocations: 2.782 MB / 441.8 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003465/0.2516, allocations: 39.75 kB / 441.8 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005002/0.2521, allocations: 222.8 kB / 442 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007881/0.2529, allocations: 498.5 kB / 442.5 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004838/0.2534, allocations: 263.5 kB / 442.8 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006714/0.2541, allocations: 0.6553 MB / 443.4 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007103/0.2548, allocations: 0.7794 MB / 444.2 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003602/0.2552, allocations: 354.8 kB / 444.6 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003885/0.2556, allocations: 370.7 kB / 444.9 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.185e-05/0.2557, allocations: 43.94 kB / 445 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003267/0.256, allocations: 255.6 kB / 445.2 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001887/0.2562, allocations: 263.3 kB / 445.5 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.2563, allocations: 185.3 kB / 445.7 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006633/0.257, allocations: 1.06 MB / 446.7 MB, free: 4.926 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.257, allocations: 0 / 446.7 MB, free: 4.926 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.257, allocations: 0 / 446.7 MB, free: 4.926 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.257, allocations: 0 / 446.7 MB, free: 4.926 MB / 318.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.001507/0.2586, allocations: 1 MB / 447.7 MB, free: 3.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.2586, allocations: 12.03 kB / 447.7 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.2587, allocations: 118.5 kB / 447.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005586/0.2593, allocations: 134.9 kB / 448 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009046/0.2602, allocations: 0.6467 MB / 448.6 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.541e-05/0.2603, allocations: 83.67 kB / 448.7 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.882e-05/0.2604, allocations: 67.94 kB / 448.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.2616, allocations: 0.9491 MB / 449.7 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/0.2617, allocations: 7.906 kB / 449.7 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.198e-05/0.2617, allocations: 31.95 kB / 449.8 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.651e-05/0.2618, allocations: 61.28 kB / 449.8 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.2629, allocations: 0.7779 MB / 450.6 MB, free: 0.8906 MB / 318.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.004811/0.2677, allocations: 3.879 MB / 454.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008316/0.2686, allocations: 0.5129 MB / 455 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.836e-05/0.2686, allocations: 12.62 kB / 455 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.2687, allocations: 42.5 kB / 455.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.765e-06/0.2687, allocations: 0 / 455.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.0105/0.2792, allocations: 3.964 MB / 459 MB, free: 7.996 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.188e-05/0.2793, allocations: 115.2 kB / 459.1 MB, free: 7.859 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006178/0.2799, allocations: 0.5222 MB / 459.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.356e-05/0.28, allocations: 33.7 kB / 459.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002984/0.2803, allocations: 395 kB / 460.1 MB, free: 6.898 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.2805, allocations: 189.3 kB / 460.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.631e-05/0.2805, allocations: 16 kB / 460.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.2807, allocations: 370.7 kB / 460.6 MB, free: 6.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004515/0.2811, allocations: 281.8 kB / 460.9 MB, free: 6.051 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005606/0.2817, allocations: 0.4994 MB / 461.4 MB, free: 5.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005123/0.2822, allocations: 372.6 kB / 461.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.2822, allocations: 4 kB / 461.8 MB, free: 5.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00307/0.2853, allocations: 1.541 MB / 463.3 MB, free: 3.461 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.2853, allocations: 11.12 kB / 463.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.2854, allocations: 19.92 kB / 463.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001543/0.2869, allocations: 480 kB / 463.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004112/0.2873, allocations: 107.8 kB / 463.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/0.2986, allocations: 10.05 MB / 474 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006269/0.2993, allocations: 40.06 kB / 474 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.371e-05/0.2993, allocations: 32 kB / 474 MB, free: 8.047 MB / 350.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 (60): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005241/0.2999, allocations: 301.6 kB / 474.3 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.3, allocations: 67.25 kB / 474.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003029/0.303, allocations: 1.402 MB / 475.8 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.3031, allocations: 8 kB / 475.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3031, allocations: 7.938 kB / 475.8 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.3031, allocations: 3.984 kB / 475.8 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004436/0.3075, allocations: 2.348 MB / 478.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3075, allocations: 0 / 478.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002884/0.3078, allocations: 55.95 kB / 478.2 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001353/0.3092, allocations: 460 kB / 478.7 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.879e-05/0.3093, allocations: 12 kB / 478.7 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01079/0.3201, allocations: 9.767 MB / 488.4 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.3201, allocations: 4.031 kB / 488.5 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003581/0.3237, allocations: 1.998 MB / 490.4 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004104/0.3241, allocations: 200.4 kB / 490.6 MB, free: 6.375 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.597e-05/0.3242, allocations: 19.98 kB / 490.7 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003807/0.3246, allocations: 19.98 kB / 490.7 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.3248, allocations: 60.44 kB / 490.7 MB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.718e-05/0.3248, allocations: 16 kB / 490.8 MB, free: 6.262 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004508/0.3253, allocations: 366.8 kB / 491.1 MB, free: 5.906 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3253, allocations: 4 kB / 491.1 MB, free: 5.902 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001051/0.3264, allocations: 256 kB / 491.4 MB, free: 5.652 MB / 366.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 (30): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004067/0.3304, allocations: 2.933 MB / 494.3 MB, free: 2.586 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002157/0.3326, allocations: 1.454 MB / 495.8 MB, free: 1.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3326, allocations: 0 / 495.8 MB, free: 1.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001451/0.3341, allocations: 1.091 MB / 496.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007831/0.3349, allocations: 165.4 kB / 497 MB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/0.3452, allocations: 10.18 MB / 0.4953 GB, free: 5.297 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007222/0.346, allocations: 1.068 MB / 0.4963 GB, free: 4.203 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003924/0.3464, allocations: 105.7 kB / 0.4964 GB, free: 4.098 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003095/0.3467, allocations: 263.3 kB / 0.4967 GB, free: 3.84 MB / 382.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3467, allocations: 0 / 0.4967 GB, free: 3.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2077/0.5545, allocations: 20.47 MB / 0.5167 GB, free: 83.04 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001551/0.5547, allocations: 207.3 kB / 0.5169 GB, free: 82.81 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.091/2.646, allocations: 6.344 kB / 0.5169 GB, free: 82.8 MB / 398.1 MB (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/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) Environment - environmentSimulation: